shithub: femtolisp

Download patch

ref: 2ee81ef43eeef5d134c3013b1d1cbd9686c1e086
parent: 19cecdac20157dc8638033e0d59f49ddcd1d82ff
parent: 5d480a2944a16a22fcaad448cd0822b45858b222
author: Jeff Bezanson <jeff.bezanson@gmail.com>
date: Fri Aug 18 14:46:54 EDT 2017

Merge pull request #50 from catull/fix-warnings

Fix warnings

--- a/Makefile.macosx
+++ b/Makefile.macosx
@@ -10,7 +10,7 @@
 LLTDIR = llt
 LLT = $(LLTDIR)/libllt.a
 
-CONFIG = -DMACOSX -DARCH_X86_64 -DBITS64 -D__CPU__=686 -I$(CARBON_HEADERS)
+CONFIG = -DBITS64 -D__CPU__=686 -I$(CARBON_HEADERS)
 FLAGS = -falign-functions -Wall -Wno-strict-aliasing -I$(LLTDIR) $(CFLAGS) -DUSE_COMPUTED_GOTO $(CONFIG)
 LIBFILES = $(LLT)
 LIBS = $(LIBFILES) -lm -framework ApplicationServices
--- a/flisp.c
+++ b/flisp.c
@@ -1791,7 +1791,7 @@
             i = GET_INT32(ip); ip+=4;
             n = GET_INT32(ip); ip+=4;
             s = GET_INT32(ip); ip+=4;
-            nargs = process_keys(v, i, n, abs(s)-(i+n), bp, nargs, s<0);
+            nargs = process_keys(v, i, n, labs(s)-(i+n), bp, nargs, s<0);
             NEXT_OP;
 
 #ifndef USE_COMPUTED_GOTO
--- a/llt/Makefile.macosx
+++ b/llt/Makefile.macosx
@@ -9,7 +9,7 @@
 
 # OS flags: LINUX, WIN32, MACOSX
 # architecture flags: __CPU__=xxx, BITS64, ARCH_X86, ARCH_X86_64
-CONFIG = -DMACOSX -DARCH_X86_64 -DBITS64 -D__CPU__=686
+CONFIG = -DBITS64 -D__CPU__=686
 FLAGS = -Wall -Wno-strict-aliasing $(CFLAGS) $(CONFIG)
 LIBS =