Fix build on x86_64-linux-musl

This commit is contained in:
Ananda Umamil
2021-03-06 16:32:20 +07:00
committed by Christoffer Lerno
parent 1d50beb330
commit 52ac783e6c
2 changed files with 3 additions and 3 deletions

View File

@@ -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;

View File

@@ -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)