summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ffi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffi.c b/ffi.c
index e6ffdbfb..1a95ea80 100644
--- a/ffi.c
+++ b/ffi.c
@@ -6906,7 +6906,7 @@ val mmap_wrap(val type, val len, val prot, val flags,
int pro = c_int(prot, self);
int flg = c_int(flags, self);
- if (ln != 0 && nelem == 0)
+ if (!tft->size)
uw_throwf(error_s, lit("~a: zero-sized element type ~s specified"),
self, type, nao);