Typeinfo for uints in javascript

This commit is contained in:
def 2015-03-12 13:16:47 +01:00
commit b72528d635

View file

@ -123,7 +123,7 @@ proc genTypeInfo(p: PProc, typ: PType): PRope =
case t.kind case t.kind
of tyDistinct: of tyDistinct:
result = genTypeInfo(p, typ.sons[0]) result = genTypeInfo(p, typ.sons[0])
of tyPointer, tyProc, tyBool, tyChar, tyCString, tyString, tyInt..tyFloat128: of tyPointer, tyProc, tyBool, tyChar, tyCString, tyString, tyInt..tyUInt64:
var s = ropef( var s = ropef(
"var $1 = {size: 0,kind: $2,base: null,node: null,finalizer: null};$n", "var $1 = {size: 0,kind: $2,base: null,node: null,finalizer: null};$n",
[result, toRope(ord(t.kind))]) [result, toRope(ord(t.kind))])