on master help sign in
Added missing parenthesis in C code generation.
commitc50d7c5b6d610c5ad9fecf55e28ca9593713f58c authorFabian Thorand <f.thorand@gmail.com> dateWed 24 Sep 2014, 23:02 (12 years ago) parent38fd2b0
1 file changed+1−1
src/IRTS/CodegenC.hs+1−1
src/IRTS/CodegenC.hs+1−1
@@ -437,7 +437,7 @@ doOp v (LSExt (ITFixed from) ITChar) [x]
437437doOp v (LSExt (ITFixed from) (ITFixed to)) [x]
438438 | nativeTyWidth from < nativeTyWidth to = bitCoerce v "S" from to x
439439doOp v (LZExt ITNative (ITFixed to)) [x]
440− = v ++ "idris_b" ++ show (nativeTyWidth to) ++ "const(vm, (uintptr_t)GETINT(" ++ creg x ++ ")"
440+ = v ++ "idris_b" ++ show (nativeTyWidth to) ++ "const(vm, (uintptr_t)GETINT(" ++ creg x ++ "))"
441441doOp v (LZExt ITChar (ITFixed to)) [x]
442442 = doOp v (LZExt ITNative (ITFixed to)) [x]
443443doOp v (LZExt (ITFixed from) ITNative) [x]