diff options
-rwxr-xr-x | lib/system/repr.nim | 2 | ||||
-rwxr-xr-x | todo.txt | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/system/repr.nim b/lib/system/repr.nim index 51498b3f5..2dec8136c 100755 --- a/lib/system/repr.nim +++ b/lib/system/repr.nim @@ -50,6 +50,8 @@ proc reprChar(x: char): string {.compilerRtl.} = add result, "\'" proc reprEnum(e: int, typ: PNimType): string {.compilerRtl.} = + # we read an 'int' but this may have been too large, so mask the other bits: + let e = e and (1 shl (typ.size*8)-1) if ntfEnumHole notin typ.flags: if e <% typ.node.len: return $typ.node.sons[e].name diff --git a/todo.txt b/todo.txt index ecee10610..c666f7903 100755 --- a/todo.txt +++ b/todo.txt @@ -1,8 +1,7 @@ version 0.8.14 ============== -- fix powerpc64 crashes -- bug: tsortdev does not run with native GC +- bug: tsortdev does not run with native GC? - object {.pure, final.} does not work again! - ``=`` should be overloadable; requires specialization for ``=``? |