diff options
author | Zahary Karadjov <zahary@gmail.com> | 2014-01-23 00:02:57 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2014-01-23 00:02:57 +0200 |
commit | 3c840102bcb3daca6f7c275c2c21183be7a145cb (patch) | |
tree | 0544e0a7319042fdbf7a79170d153b36c4c93941 /lib/system | |
parent | 9dec669b941b8ebf6d66ec29c3bb9451ad164b51 (diff) | |
download | Nim-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.nim | 6 |
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`; """ |