bugfix: typo in unsigned.nim; fixes #234

This commit is contained in:
Araq 2012-10-20 18:48:28 +02:00
commit e80af878b9
2 changed files with 2 additions and 1 deletions

View file

@ -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 ## computes the integer modulo operation. This is the same as
## ``x - (x div y) * y``. ## ``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``. ## Returns true iff ``x <= y``.
proc `<`*[T: SomeUInt](x, y: T): bool {.magic: "LtU", noSideEffect.} proc `<`*[T: SomeUInt](x, y: T): bool {.magic: "LtU", noSideEffect.}

View file

@ -62,6 +62,7 @@ type # BaseTsd.h -- Type definitions for the basic sized types
type # WinDef.h -- Basic Windows Type Definitions type # WinDef.h -- Basic Windows Type Definitions
# BaseTypes # BaseTypes
UINT = int32
ULONG* = int ULONG* = int
PULONG* = ptr int PULONG* = ptr int
USHORT* = int16 USHORT* = int16