fixed the rodfiles tests

This commit is contained in:
Zahary Karadjov 2012-07-20 00:35:05 +03:00
commit 371619c43a
5 changed files with 39 additions and 36 deletions

View file

@ -407,7 +407,7 @@ proc decodeSym(r: PRodReader, info: TLineInfo): PSym =
if r.s[r.pos] == '%':
inc(r.pos)
result.position = decodeVInt(r.s, r.pos)
elif result.kind notin routineKinds:
elif result.kind notin routineKinds + {skModule}:
result.position = 0
# this may have been misused as reader index! But we still
# need it for routines as the body is loaded lazily.