sourcemaps: Fix line number calculation.

Fixes issue #264