diff options
author | Zahary Karadjov <zahary@gmail.com> | 2013-05-04 17:50:38 +0300 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2013-05-04 17:50:38 +0300 |
commit | 3f1e9b3a25d6cc9b6daddcc345b9002cbb7b8b78 (patch) | |
tree | c25d0ab819a5500d7e0e46575a8bb0f2dce390c2 /compiler/rodwrite.nim | |
parent | 0774af169b44e5e2a67a880e694f2140b3c694da (diff) | |
parent | 05fd46cdd1ce26b714888182ab69dcf2cd3d6ed2 (diff) | |
download | Nim-3f1e9b3a25d6cc9b6daddcc345b9002cbb7b8b78.tar.gz |
Merge branch 'master' of gh:/Araq/Nimrod into upstream
Diffstat (limited to 'compiler/rodwrite.nim')
-rw-r--r--[-rwxr-xr-x] | compiler/rodwrite.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rodwrite.nim b/compiler/rodwrite.nim index 9eab844d1..0221977bf 100755..100644 --- a/compiler/rodwrite.nim +++ b/compiler/rodwrite.nim @@ -205,6 +205,9 @@ proc encodeType(w: PRodWriter, t: PType, result: var string) = return # we need no surrounding [] here because the type is in a line of its own if t.kind == tyForward: InternalError("encodeType: tyForward") + # for the new rodfile viewer we use a preceeding [ so that the data section + # can easily be disambiguated: + add(result, '[') encodeVInt(ord(t.kind), result) add(result, '+') encodeVInt(t.id, result) |