mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-21 23:05:27 +00:00
bugfix: typo in unsigned.nim; fixes #234
This commit is contained in:
@@ -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.}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user