diff options
| author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-30 10:40:05 +0000 |
|---|---|---|
| committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-12-30 10:40:05 +0000 |
| commit | d8850f2d0d1d558fb0736c45174ff5996aa9a52c (patch) | |
| tree | acdac4cf117f98234dc51097eee9dd6a7688b43d /miscutils | |
| parent | 76ddc2e3e4837d0557fb6626394f87648e5f8c3b (diff) | |
| download | busybox-w32-d8850f2d0d1d558fb0736c45174ff5996aa9a52c.tar.gz busybox-w32-d8850f2d0d1d558fb0736c45174ff5996aa9a52c.tar.bz2 busybox-w32-d8850f2d0d1d558fb0736c45174ff5996aa9a52c.zip | |
dc: fix the "base 2" patch omission of base not being set
Diffstat (limited to 'miscutils')
| -rw-r--r-- | miscutils/dc.c | 4 |
1 files changed, 3 insertions, 1 deletions
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( | |||
| 19 | #define pointer (G.pointer ) | 19 | #define pointer (G.pointer ) |
| 20 | #define base (G.base ) | 20 | #define base (G.base ) |
| 21 | #define stack (G.stack ) | 21 | #define stack (G.stack ) |
| 22 | #define INIT_G() do { } while (0) | 22 | #define INIT_G() do { \ |
| 23 | base = 10; \ | ||
| 24 | } while (0) | ||
| 23 | 25 | ||
| 24 | 26 | ||
| 25 | static void push(double a) | 27 | static void push(double a) |
