]> thyrsus.com Git - intercal.git/commitdiff
Fix some bugs and nonportabilities pointed out by clang
authorAlex Smith <ais523@bham.ac.uk>
Tue, 7 Sep 2010 20:28:07 +0000 (21:28 +0100)
committerAlex Smith <ais523@bham.ac.uk>
Tue, 7 Sep 2010 20:28:07 +0000 (21:28 +0100)
The build now works correctly under clang; usefully, it seems to make
the intermittently-working permute test fail more reliably. It's always
nice to get the opinion of a second compiler!

src/abcess.h
src/ick_bool.h
src/idiotism.oil

index e1d0a35b450d649d25522014de96084414cbe8e2..e5dbb3f3392af2bd8dbcaef7875e00d70621c1e6 100644 (file)
@@ -27,7 +27,7 @@ typedef int_fast8_t bool;
 typedef int bool;
 #   endif
 #  else
-typedef _Bool bool
+typedef _Bool bool;
 #  endif
 #  define true 1
 #  define false 0
index 8430c8d4e65d8861d4027306334a3d00f084959e..a9ec63c075c1027fcb88b39b5c89f4ccef83d5c2 100644 (file)
@@ -18,7 +18,7 @@ typedef int_fast8_t bool;
 typedef int bool;
 #   endif
 #  else
-typedef _Bool bool
+typedef _Bool bool;
 #  endif
 #  define true 1
 #  define false 0
index 371eabf3f0841cec77e6e0d7ae92fa345c3c18f0..61d9c0dcb392cef756c5098db866e38eb3ab21b5 100644 (file)
@@ -69,7 +69,7 @@
 
 ; Reducing constants inside a C or operation can help to recognize idioms
 [cfoldintoorinand]
-(((_1) | #{(x != x & x3)}2) & #{1}3)->(((_1) | #{x2 & x3}0) & _3)
+(((_1) | #{(x != (x & x3))}2) & #{1}3)->(((_1) | #{x2 & x3}0) & _3)
 
 ; Binary bitwise optimizations
 [cbinand]