summaryrefslogtreecommitdiffstats
path: root/ffi.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-04-27 23:02:38 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-04-27 23:02:38 -0700
commitcd1a4d462c52de2f15c5f3f5bd6fb760b6e29420 (patch)
treeeaf8f8ab29cadec0a8014bbc8d92c7fa3d315b09 /ffi.h
parentc489ea71dd23c4108bad92bba463cd153fc9135c (diff)
downloadtxr-cd1a4d462c52de2f15c5f3f5bd6fb760b6e29420.tar.gz
txr-cd1a4d462c52de2f15c5f3f5bd6fb760b6e29420.tar.bz2
txr-cd1a4d462c52de2f15c5f3f5bd6fb760b6e29420.zip
ffi: fix problems caught by g++.
* ffi.c (float_s): Variable removed. This is a duplicate definition; we already have this symbol in lib.c. (ffi_type_s): Duplicate definition removed; it is repeated two lines below. (ffi_str_put): Remove pointless const qualifier on u8s variable. (ffi_call_wrap): Cast return value of alloca. Also, rc pointer needs to be cast to mem_t *. (ffi_init): Remove initialization of float_s. * ffi.h (float_s): Declaration removed.
Diffstat (limited to 'ffi.h')
-rw-r--r--ffi.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffi.h b/ffi.h
index 79b5dd2e..fafee40f 100644
--- a/ffi.h
+++ b/ffi.h
@@ -35,7 +35,7 @@ extern val short_s, ushort_s;
extern val int_s, uint_s;
extern val long_s, ulong_s;
-extern val float_s, double_s;
+extern val double_s;
extern val wstr_s;