diff options
author | Yuriy Glukhov <yglukhov@users.noreply.github.com> | 2015-03-24 11:48:24 +0200 |
---|---|---|
committer | Yuriy Glukhov <yglukhov@users.noreply.github.com> | 2015-03-24 11:48:24 +0200 |
commit | 9b0c70439301e6933cc1011e090b8171552a7311 (patch) | |
tree | c3c08e26230fafa34dd9c402874e131073ffda38 | |
parent | ca5c3295338260af6cc3f861e19685cb4cd1228a (diff) | |
download | Nim-9b0c70439301e6933cc1011e090b8171552a7311.tar.gz |
uint support for JS.
-rw-r--r-- | compiler/jsgen.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/jsgen.nim b/compiler/jsgen.nim index c592f3f47..4e0e732a5 100644 --- a/compiler/jsgen.nim +++ b/compiler/jsgen.nim @@ -1118,7 +1118,7 @@ proc createRecordVarAux(p: PProc, rec: PNode, c: var int): PRope = proc createVar(p: PProc, typ: PType, indirect: bool): PRope = var t = skipTypes(typ, abstractInst) case t.kind - of tyInt..tyInt64, tyEnum, tyChar: + of tyInt..tyInt64, tyUInt..tyUInt64, tyEnum, tyChar: result = putToSeq("0", indirect) of tyFloat..tyFloat128: result = putToSeq("0.0", indirect) |