Fixed issues noted by default GitHub code scan

This commit is contained in:
Landon Curt Noll
2021-10-22 01:39:07 -07:00
parent 8aa5f140bf
commit 6c0c8e0ef6
2 changed files with 4 additions and 4 deletions

View File

@@ -56,8 +56,8 @@ main(void)
printf("#define FPOS_POS_BITS %d\n", FPOS_POS_BITS); printf("#define FPOS_POS_BITS %d\n", FPOS_POS_BITS);
printf("#define FPOS_POS_LEN %d\n", int(FPOS_POS_BITS/8)); printf("#define FPOS_POS_LEN %d\n", int(FPOS_POS_BITS/8));
# else # else
printf("#define FPOS_POS_BITS %d\n", sizeof(pos.__pos)*8); printf("#define FPOS_POS_BITS %lu\n", sizeof(pos.__pos)*8);
printf("#define FPOS_POS_LEN %d\n", sizeof(pos.__pos)); printf("#define FPOS_POS_LEN %lu\n", sizeof(pos.__pos));
# endif # endif
#else #else

View File

@@ -1034,7 +1034,7 @@ zgcd(ZVALUE z1, ZVALUE z2, ZVALUE *res)
} }
needw = FALSE; needw = FALSE;
} }
g = *a0 * w; g = (FULL) (*a0 * w);
if (h < BASEB) { if (h < BASEB) {
g &= (1 << h) - 1; g &= (1 << h) - 1;
} else { } else {
@@ -1044,7 +1044,7 @@ zgcd(ZVALUE z1, ZVALUE z2, ZVALUE *res)
g = 1; g = 1;
} }
} else { } else {
g = (HALF) *a0 * w; g = (FULL) (*a0 * w);
} }
a = a0; a = a0;
b = b0; b = b0;