mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Fixed issues noted by default GitHub code scan
This commit is contained in:
4
zfunc.c
4
zfunc.c
@@ -1034,7 +1034,7 @@ zgcd(ZVALUE z1, ZVALUE z2, ZVALUE *res)
|
||||
}
|
||||
needw = FALSE;
|
||||
}
|
||||
g = *a0 * w;
|
||||
g = (FULL) (*a0 * w);
|
||||
if (h < BASEB) {
|
||||
g &= (1 << h) - 1;
|
||||
} else {
|
||||
@@ -1044,7 +1044,7 @@ zgcd(ZVALUE z1, ZVALUE z2, ZVALUE *res)
|
||||
g = 1;
|
||||
}
|
||||
} else {
|
||||
g = (HALF) *a0 * w;
|
||||
g = (FULL) (*a0 * w);
|
||||
}
|
||||
a = a0;
|
||||
b = b0;
|
||||
|
Reference in New Issue
Block a user