summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-10-20 18:48:28 +0200
committerAraq <rumpf_a@web.de>2012-10-20 18:48:28 +0200
commite80af878b9f3accc23b55aa7b4619604e78a28a8 (patch)
treee27689a0d16dfc8d02ec475c3ddc7aeafb5fe0dd /lib
parent3f7a9e9b4739c63784634f7e940a2698981f3331 (diff)
downloadNim-e80af878b9f3accc23b55aa7b4619604e78a28a8.tar.gz
bugfix: typo in unsigned.nim; fixes #234
Diffstat (limited to 'lib')
-rw-r--r--lib/core/unsigned.nim2
-rwxr-xr-xlib/windows/windows.nim1
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