Author: jonpryor
Date: 2006-11-15 11:03:37 -0500 (Wed, 15 Nov 2006)
New Revision: 67933
Modified:
trunk/mono/support/ChangeLog
trunk/mono/support/map.c
Log:
* map.c: Flush (removes warnings due to _cnm_return_val_if_overflow()).
Modified: trunk/mono/support/ChangeLog
===================================================================
--- trunk/mono/support/ChangeLog 2006-11-15 16:02:51 UTC (rev 67932)
+++ trunk/mono/support/ChangeLog 2006-11-15 16:03:37 UTC (rev 67933)
@@ -1,3 +1,7 @@
+2006-11-15 Jonathan Pryor <[EMAIL PROTECTED]>
+
+ * map.c: Flush (removes warnings due to _cnm_return_val_if_overflow()).
+
2006-11-14 Jonathan Pryor <[EMAIL PROTECTED]>
* map.c: Flush (fixes FilePermissions conversion, allowing
Syscall.stat() to
Modified: trunk/mono/support/map.c
===================================================================
--- trunk/mono/support/map.c 2006-11-15 16:02:51 UTC (rev 67932)
+++ trunk/mono/support/map.c 2006-11-15 16:03:37 UTC (rev 67933)
@@ -205,8 +205,10 @@
#endif
#define _cnm_return_val_if_overflow(to_t,from,val) G_STMT_START { \
- if (!(_cnm_integral_type_min(to_t) <= from && \
- ((from < 0) || (from <= _cnm_integral_type_max(to_t))))) { \
+ gint64 sf = (gint64) from; \
+ guint64 uf = (guint64) from; \
+ if (!(_cnm_integral_type_min(to_t) <= sf && \
+ ((from < 0) || (uf <= _cnm_integral_type_max(to_t))))) { \
_cnm_dump_(to_t, from); \
errno = EOVERFLOW; \
return (val); \
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches