[m-rev.] diff: fix a problem on Cygwin
Julien Fischer
jfischer at opturion.com
Wed May 1 03:05:37 AEST 2013
Fix a problem on Cygwin.
library/float.m:
The 64-bit integer type on Cygwin is "long long int".
Julien.
diff --git a/library/float.m b/library/float.m
index f82b8ef..cfb28dd 100644
--- a/library/float.m
+++ b/library/float.m
@@ -941,7 +941,7 @@ float.float_to_doc(X) = str(string.float_to_string(X)).
char buf[64];
u.f = (double) Flt;
- #if defined(MR_MINGW64)
+ #if defined(MR_MINGW64) || defined(MR_CYGWIN)
sprintf(buf, ""%lld"", u.i);
#else
sprintf(buf, ""%ld"", u.i);
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20130501/48d48397/attachment.html>
More information about the reviews
mailing list