diff options
author | Nicolas Williams <nico@cryptonector.com> | 2015-03-30 15:55:54 -0500 |
---|---|---|
committer | Nicolas Williams <nico@cryptonector.com> | 2015-03-30 22:36:04 -0500 |
commit | 24005287f4ed1ffe486060b3156d5dfe6a3847da (patch) | |
tree | 1437a88cf5d34ad3c09ba3668bf677e52cc1f65a /locfile.c | |
parent | 1dcfc2f5473364a3a1a7261ab933245504dea891 (diff) |
Add `$__loc__` (fix #740)
Diffstat (limited to 'locfile.c')
-rw-r--r-- | locfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -47,7 +47,7 @@ void locfile_free(struct locfile* l) { } } -static int locfile_get_line(struct locfile* l, int pos) { +int locfile_get_line(struct locfile* l, int pos) { assert(pos < l->length); int line = 1; while (l->linemap[line] <= pos) line++; // == if pos at start (before, never ==, because pos never on \n) |