Browse Source

dc: fix the "base 2" patch omission of base not being set

Denis Vlasenko 15 năm trước cách đây
mục cha
commit
d8850f2d0d
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      miscutils/dc.c

+ 3 - 1
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)