mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-01 00:38:31 +00:00
Fix some static analysis issues
This commit is contained in:
parent
fb54604b31
commit
f147d3dde9
30 changed files with 375 additions and 266 deletions
|
@ -48,8 +48,10 @@ void Multiply%dx%d(uint64_t C[%d], const uint64_t A[%d], const uint64_t B[%d]) {
|
|||
uint64_t z,h,l;\n\
|
||||
uint64_t ",
|
||||
(n + m) * 64, n * 64, m * 64, n + m, n, m, n, m, n + m, n, m);
|
||||
Rs = gc(calloc(sizeof(*Rs), n + m + 1));
|
||||
Ra = gc(calloc(sizeof(*Ra), n + m + 1));
|
||||
if (!(Rs = calloc(sizeof(*Rs), n + m + 1)))
|
||||
__builtin_trap();
|
||||
if (!(Ra = calloc(sizeof(*Ra), n + m + 1)))
|
||||
__builtin_trap();
|
||||
for (j = 0; j < n; ++j) {
|
||||
if (j)
|
||||
printf(", ");
|
||||
|
@ -172,6 +174,8 @@ void Multiply%dx%d(uint64_t C[%d], const uint64_t A[%d], const uint64_t B[%d]) {
|
|||
}
|
||||
printf("}\n");
|
||||
fflush(stdout);
|
||||
free(Ra);
|
||||
free(Rs);
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue