]> thyrsus.com Git - intercal.git/commitdiff
Fix type mismatch between oil.h, dekludge.c
authorAlex Smith <ais523@bham.ac.uk>
Thu, 2 Sep 2010 20:24:47 +0000 (21:24 +0100)
committerAlex Smith <ais523@bham.ac.uk>
Thu, 2 Sep 2010 20:24:47 +0000 (21:24 +0100)
Wow was this one subtle. "bool" was somehow defined as 8-bit in
dekludge.c, but 32-bit in oil.h, due to include files being included
differently, and this was causing boolean-valued checks to fail
silently.

src/oil.h

index 6aa855f3b0fa99b55e9b3d04f83ce7500aab87f6..b2fd441b28c2eef141847697a0a9c86a9b832a26 100644 (file)
--- a/src/oil.h
+++ b/src/oil.h
@@ -3,6 +3,7 @@
    Copyright (C) Alex Smith 2008
    See oil.y for copyright conditions. */
 
+#include "config.h"
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>