From d8850f2d0d1d558fb0736c45174ff5996aa9a52c Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Tue, 30 Dec 2008 10:40:05 +0000 Subject: [PATCH] dc: fix the "base 2" patch omission of base not being set --- miscutils/dc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/miscutils/dc.c b/miscutils/dc.c index 6d4efa943..ff2bc3bce 100644 --- a/miscutils/dc.c +++ b/miscutils/dc.c @@ -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)