dc: fix the "base 2" patch omission of base not being set
authorDenis Vlasenko <vda.linux@googlemail.com>
Tue, 30 Dec 2008 10:40:05 +0000 (10:40 -0000)
committerDenis Vlasenko <vda.linux@googlemail.com>
Tue, 30 Dec 2008 10:40:05 +0000 (10:40 -0000)
miscutils/dc.c

index 6d4efa9..ff2bc3b 100644 (file)
@@ -19,7 +19,9 @@ enum { STACK_SIZE = (COMMON_BUFSIZE - offsetof(struct globals, stack)) / sizeof(
 #define pointer   (G.pointer   )
 #define base      (G.base      )
 #define stack     (G.stack     )
-#define INIT_G() do { } while (0)
+#define INIT_G() do { \
+       base = 10; \
+} while (0)
 
 
 static void push(double a)