mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.11.0t5
This commit is contained in:
3
zio.c
3
zio.c
@@ -238,6 +238,7 @@ math_getdivertedio(void)
|
||||
outbufused = sp->outbufused;
|
||||
outbuf = sp->outbuf;
|
||||
outputisstring = sp->outputisstring;
|
||||
free(sp);
|
||||
return cp;
|
||||
}
|
||||
|
||||
@@ -394,7 +395,7 @@ zprintb(ZVALUE z, long width)
|
||||
PUTSTR("0b");
|
||||
while (len-- >= 0) {
|
||||
val = *hp--;
|
||||
mask = (1 << (BASEB - 1));
|
||||
mask = ((HALF)1 << (BASEB - 1));
|
||||
while (mask) {
|
||||
ch = '0' + ((mask & val) != 0);
|
||||
if (didprint || (ch != '0')) {
|
||||
|
Reference in New Issue
Block a user