mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fix build on x86_64-linux-musl
This commit is contained in:
committed by
Christoffer Lerno
parent
1d50beb330
commit
52ac783e6c
@@ -193,7 +193,7 @@ static void to_twos_complement(BigInt *dest, const BigInt *source, size_t bit_co
|
||||
if (dest->digit == 0) dest->digit_count = 0;
|
||||
return;
|
||||
}
|
||||
dest->digits = malloc_arena(dest->digit_count * sizeof(u_int64_t));
|
||||
dest->digits = malloc_arena(dest->digit_count * sizeof(uint64_t));
|
||||
for (size_t i = 0; i < digits_to_copy; i += 1)
|
||||
{
|
||||
uint64_t digit = (i < source->digit_count) ? source_digits[i] : 0;
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// Use of this source code is governed by the GNU LGPLv3.0 license
|
||||
// a copy of which can be found in the LICENSE file.
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include "common.h"
|
||||
#include "errors.h"
|
||||
#include "lib.h"
|
||||
@@ -9,8 +10,7 @@
|
||||
#include <dirent.h>
|
||||
#include <limits.h>
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/errno.h>
|
||||
#include <errno.h>
|
||||
#include "whereami.h"
|
||||
|
||||
const char* expand_path(const char* path)
|
||||
|
||||
Reference in New Issue
Block a user