summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.com>2014-01-23 00:02:57 +0200
committerZahary Karadjov <zahary@gmail.com>2014-01-23 00:02:57 +0200
commit3c840102bcb3daca6f7c275c2c21183be7a145cb (patch)
tree0544e0a7319042fdbf7a79170d153b36c4c93941 /lib/system
parent9dec669b941b8ebf6d66ec29c3bb9451ad164b51 (diff)
downloadNim-3c840102bcb3daca6f7c275c2c21183be7a145cb.tar.gz
fix the error "only proc headers can feature pragmas" when compiling in JS mode
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/jssys.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/system/jssys.nim b/lib/system/jssys.nim
index 850dd1e11..4fc5f479b 100644
--- a/lib/system/jssys.nim
+++ b/lib/system/jssys.nim
@@ -472,17 +472,17 @@ proc Ze(a: int): int {.compilerproc.} =
 proc Ze64(a: int64): int64 {.compilerproc.} =
   result = a
 
-proc toU8(a: int): int8 {.noStackFrame, compilerproc.} =
+proc ToU8(a: int): int8 {.noStackFrame, compilerproc.} =
   asm """
     return `a`;
   """
 
-proc toU16(a: int): int16 {.noStackFrame, compilerproc.} =
+proc ToU16(a: int): int16 {.noStackFrame, compilerproc.} =
   asm """
     return `a`;
   """
 
-proc toU32(a: int): int32 {.noStackFrame, compilerproc.} =
+proc ToU32(a: int): int32 {.noStackFrame, compilerproc.} =
   asm """
     return `a`;
   """