bugfix: typo in unsigned.nim; fixes #234
This commit is contained in:
parent
3f7a9e9b47
commit
e80af878b9
2 changed files with 2 additions and 1 deletions
|
|
@ -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.}
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue