Author: jonpryor
Date: 2006-11-30 15:08:48 -0500 (Thu, 30 Nov 2006)
New Revision: 68773
Modified:
branches/mono-1-2/mono/support/ChangeLog
branches/mono-1-2/mono/support/map.c
Log:
* map.c: _cnm_return_val_if_overflow() should be a no-op unless DEBUG is
defined. "Fixes" false positives pending further investigation.
Modified: branches/mono-1-2/mono/support/ChangeLog
===================================================================
--- branches/mono-1-2/mono/support/ChangeLog 2006-11-30 19:49:13 UTC (rev
68772)
+++ branches/mono-1-2/mono/support/ChangeLog 2006-11-30 20:08:48 UTC (rev
68773)
@@ -1,3 +1,8 @@
+2006-11-30 Jonathan Pryor <[EMAIL PROTECTED]>
+
+ * map.c: _cnm_return_val_if_overflow() should be a no-op unless DEBUG is
+ defined. "Fixes" false positives pending further investigation.
+
2006-11-17 Jonathan Pryor <[EMAIL PROTECTED]>
* map.c: Flush (fix FromFilePermissions for SuppressFlags-marked
values).
Modified: branches/mono-1-2/mono/support/map.c
===================================================================
--- branches/mono-1-2/mono/support/map.c 2006-11-30 19:49:13 UTC (rev
68772)
+++ branches/mono-1-2/mono/support/map.c 2006-11-30 20:08:48 UTC (rev
68773)
@@ -204,6 +204,7 @@
#define _cnm_dump_(to_t, from) do {} while (0)
#endif
+#ifdef DEBUG
#define _cnm_return_val_if_overflow(to_t,from,val) G_STMT_START { \
gint64 sf = (gint64) from; \
guint64 uf = (guint64) from; \
@@ -214,6 +215,11 @@
return (val); \
} \
} G_STMT_END
+#else /* !def DEBUG */
+/* don't do an overflow checking */
+#define _cnm_return_val_if_overflow(to_t,from,val) G_STMT_START { \
+ } G_STMT_END
+#endif /* def DEBUG */
int Mono_Posix_FromAccessModes (int x, int *r)
{
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches