summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rwxr-xr-xlib/system.nim8
-rwxr-xr-xlib/windows/mmsystem.nim2
-rwxr-xr-xlib/windows/shellapi.nim2
3 files changed, 7 insertions, 5 deletions
diff --git a/lib/system.nim b/lib/system.nim
index 69733d6a1..994127ea2 100755
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -1156,9 +1156,11 @@ proc `$` *(x: int64): string {.magic: "Int64ToStr", noSideEffect.}
   ## The stingify operator for an integer argument. Returns `x`
   ## converted to a decimal string.
 
-proc `$` *(x: uint64): string {.noSideEffect.}
-  ## The stingify operator for an unsigned integer argument. Returns `x`
-  ## converted to a decimal string.
+when not defined(NimrodVM):
+  when not defined(ECMAScript):
+    proc `$` *(x: uint64): string {.noSideEffect.}
+      ## The stingify operator for an unsigned integer argument. Returns `x`
+      ## converted to a decimal string.
 
 proc `$` *(x: float): string {.magic: "FloatToStr", noSideEffect.}
   ## The stingify operator for a float argument. Returns `x`
diff --git a/lib/windows/mmsystem.nim b/lib/windows/mmsystem.nim
index c7dd5b1be..91279a5ef 100755
--- a/lib/windows/mmsystem.nim
+++ b/lib/windows/mmsystem.nim
@@ -2649,7 +2649,7 @@ proc MCI_TMSF_FRAME(tmsf: int32): int8 =
   result = toU8(tmsf shr 24)
 
 proc mci_Make_TMSF(t, m, s, f: int8): int32 =
-  result = ze(t) or ze(m) shl 8 or ze(s) shl 16 or ze(f) shl 24
+  result = (ze(t) or ze(m) shl 8 or ze(s) shl 16 or ze(f) shl 24).int32
 
 proc DIBINDEX(n: int32): int32 =
   result = n Or 0x000010FF'i32 shl 16'i32
diff --git a/lib/windows/shellapi.nim b/lib/windows/shellapi.nim
index da3159176..41f2a60d5 100755
--- a/lib/windows/shellapi.nim
+++ b/lib/windows/shellapi.nim
@@ -860,4 +860,4 @@ const
 # implementation
 
 proc EIRESID(x: int32): int32 =
-  result = - int(x)
+  result = -x