From 250375bdd22530d3a0f3b2b87cbbf0987c65fcaa Mon Sep 17 00:00:00 2001 From: Reimer Behrends Date: Tue, 8 Sep 2015 19:12:01 +0200 Subject: [PATCH] Remove spurious unsigned operations from system/threads.nim. These operations were included before the unsigned module was incorporated directly into system.nim and subsequently caused compilation errors with --gc:go due to duplicate definitions. --- lib/system/mmdisp.nim | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/system/mmdisp.nim b/lib/system/mmdisp.nim index ecf25ceeeb..1c13f3ff8a 100644 --- a/lib/system/mmdisp.nim +++ b/lib/system/mmdisp.nim @@ -199,9 +199,6 @@ elif defined(gogc): else: const goLib = "libgo.so" - proc `div`[T: SomeUnsignedInt](x, y: T): T {.magic: "DivU", noSideEffect.} - proc `-`[T: SomeUnsignedInt](x, y: T): T {.magic: "SubU", noSideEffect.} - proc roundup(x, v: int): int {.inline.} = result = (x + (v-1)) and not (v-1)