On Sep 4, felix scribed:
>
> Does the C library on OpenBSD handle "+inf." in it's "strtol"? It looks
> like it doesn't (see convert_string_to_number in runtime.c).
>
No, it doesn't. Is this the fix? All tests run after I applied this.
--- runtime.c.~1~ Wed Sep 2 15:58:55 2009
+++ runtime.c Sat Sep 5 12:51:28 2009
@@ -7680,7 +7680,7 @@
C_word n;
C_char *eptr, *eptr2;
double fn;
-#if defined(__CYGWIN__) || defined(__MINGW32__)
+#if defined(__CYGWIN__) || defined(__MINGW32__) || defined(__OpenBSD__)
int len = C_strlen(str);
if(len >= 4) {
Thanks,
Dave
_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users