diff options
author | Araq <rumpf_a@web.de> | 2010-08-24 00:19:16 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2010-08-24 00:19:16 +0200 |
commit | e439c6b02e62837e1387e339d72fca91afd3981a (patch) | |
tree | e2b03747c77e8d7d05d7b0a947d4693dc78ee9ac /lib/pure/json.nim | |
parent | b1ca3ab7c517e5e6b1b9f549e3572c84dad77fb3 (diff) | |
download | Nim-e439c6b02e62837e1387e339d72fca91afd3981a.tar.gz |
bugfix: init of temps
Diffstat (limited to 'lib/pure/json.nim')
-rwxr-xr-x | lib/pure/json.nim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pure/json.nim b/lib/pure/json.nim index bc52fb886..0fd2a9f01 100755 --- a/lib/pure/json.nim +++ b/lib/pure/json.nim @@ -345,6 +345,8 @@ proc next*(my: var TJsonParser) = ## retrieves the first/next event. This controls the parser. var tk = getTok(my) var i = my.state.len-1 + # the following code is a state machine. If we had proper coroutines, + # the code could be much simpler. case my.state[i] of stateEof: if tk == tkEof: |