mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 08:12:28 +00:00
Fix build from docker build with alpine from macOS (#286)
* fix(build): Remove unused variable and fix const warning. * fix(build): Fix others -Werror=discarded-qualifiers Co-authored-by: Élie BRAMI <Et7f3@mbp-de-elie.home>
This commit is contained in:
parent
67b5200a0b
commit
253ac31a64
7 changed files with 6 additions and 7 deletions
|
@ -22,7 +22,7 @@
|
|||
void *byte2double(long n, const void *p, double weight, double bias) {
|
||||
long i;
|
||||
double f, *dst;
|
||||
unsigned char *src;
|
||||
const unsigned char *src;
|
||||
if ((dst = valloc(n * sizeof(double)))) {
|
||||
for (src = p, i = 0; i < n; ++i) {
|
||||
f = src[i];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue