diff options
-rw-r--r-- | lib/core/unsigned.nim | 2 | ||||
-rwxr-xr-x | lib/windows/windows.nim | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/lib/core/unsigned.nim b/lib/core/unsigned.nim index 63183f56a..a3ddd4125 100644 --- a/lib/core/unsigned.nim +++ b/lib/core/unsigned.nim @@ -52,7 +52,7 @@ proc `mod`*[T: SomeUInt](x, y: T): T {.magic: "ModU", noSideEffect.} ## computes the integer modulo operation. This is the same as ## ``x - (x div y) * y``. -proc `<=`*[T: SomeUInt](x, y: SomeUInt): bool {.magic: "LeU", noSideEffect.} +proc `<=`*[T: SomeUInt](x, y: T): bool {.magic: "LeU", noSideEffect.} ## Returns true iff ``x <= y``. proc `<`*[T: SomeUInt](x, y: T): bool {.magic: "LtU", noSideEffect.} diff --git a/lib/windows/windows.nim b/lib/windows/windows.nim index ff28ab255..9b55b47b9 100755 --- a/lib/windows/windows.nim +++ b/lib/windows/windows.nim @@ -62,6 +62,7 @@ type # BaseTsd.h -- Type definitions for the basic sized types type # WinDef.h -- Basic Windows Type Definitions # BaseTypes + UINT = int32 ULONG* = int PULONG* = ptr int USHORT* = int16 |