asm/decimal.c: provide a default wordsize
authorMarkus Bröker <mbroeker@volpe.spectre.org>
Wed, 18 Aug 2010 16:17:00 +0200
changeset 142 d6bce20b455e
parent 141 0b5befeb361e
child 143 88d9b8bfa7a5
asm/decimal.c: provide a default wordsize
asm/decimal.c
--- a/asm/decimal.c
+++ b/asm/decimal.c
@@ -8,6 +8,10 @@
 #include <string.h>
 #include <limits.h>
 
+#ifndef __WORDSIZE
+#define __WORDSIZE 32
+#endif
+
 #define  MAXBITS __WORDSIZE
 #define  MAXVALUE ULONG_MAX
 
@@ -105,7 +109,7 @@
         }
         printf ("\n");
 
-        if (binaer)
+        if (binaer != NULL)
             free (binaer);
     }
     return EXIT_SUCCESS;