bugfix: typo in unsigned.nim; fixes #234

This commit is contained in:
Araq
2012-10-20 18:48:28 +02:00
parent 3f7a9e9b47
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
## ``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.}

View File

@@ -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