Add $__loc__ (fix #740)

This commit is contained in:
Nicolas Williams committed 2015-03-30 22:36:04 -05:00
1 parent 1dcfc2f547
commit 24005287f4
10 files changed
+1178 -1152

No files matched your search

+1 -1
View File
@@ -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)