diff options
author | Araq <rumpf_a@web.de> | 2011-09-24 10:57:35 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-09-24 10:57:35 +0200 |
commit | 98e5beb936d8743b4d8e07fc47a0ab47e5f8a342 (patch) | |
tree | 52781ada5f5fba3ccdbb3e98007d7f2e636143c2 /lib/pure | |
parent | ae0ab9a101fccfe8cdd8f2efa0ae2c73e396db7c (diff) | |
download | Nim-98e5beb936d8743b4d8e07fc47a0ab47e5f8a342.tar.gz |
got rid of akPureObject
Diffstat (limited to 'lib/pure')
-rwxr-xr-x | lib/pure/marshal.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pure/marshal.nim b/lib/pure/marshal.nim index 354d70a71..8b062ef26 100755 --- a/lib/pure/marshal.nim +++ b/lib/pure/marshal.nim @@ -47,7 +47,7 @@ proc storeAny(s: PStream, a: TAny, stored: var TIntSet) = if i > 0: s.write(", ") storeAny(s, a[i], stored) s.write("]") - of akObject, akPureObject, akTuple: + of akObject, akTuple: s.write("{") var i = 0 for key, val in fields(a): @@ -138,7 +138,7 @@ proc loadAny(p: var TJsonParser, a: TAny, t: var TTable[biggestInt, pointer]) = else: raiseParseErr(p, "") else: raiseParseErr(p, "'[' expected for a seq") - of akObject, akPureObject, akTuple: + of akObject, akTuple: if a.kind == akObject: setObjectRuntimeType(a) if p.kind != jsonObjectStart: raiseParseErr(p, "'{' expected for an object") next(p) |