[SCM] OCE packaging branch, debian, updated. debian/0.11-1
Denis Barbier
bouzim at gmail.com
Thu Dec 13 19:16:45 UTC 2012
The following commit has been merged in the debian branch:
commit 09a16f72b5adff280b96bcb20afeb64f8cadfff5
Author: Denis Barbier <bouzim at gmail.com>
Date: Thu Nov 22 22:49:48 2012 +0100
Replace labs(intptr_t) by uintptr_t
diff --git a/inc/TDF_LabelMapHasher.lxx b/inc/TDF_LabelMapHasher.lxx
index b63ff58..9959d34 100644
--- a/inc/TDF_LabelMapHasher.lxx
+++ b/inc/TDF_LabelMapHasher.lxx
@@ -23,6 +23,11 @@
//Version Date Purpose
// 0.0 Feb 13 1997 Creation
+#ifdef _MSC_VER
+#include <stddef.h>
+#else
+#include <stdint.h>
+#endif
//=======================================================================
//function : HashCode
@@ -35,7 +40,7 @@
inline Standard_Integer TDF_LabelMapHasher::HashCode
//#endif
(const TDF_Label& aLab, const Standard_Integer Upper)
-{ return 1 + ( (int) (labs((intptr_t) aLab.myLabelNode) % Upper) ); }
+{ return 1 + ( (Standard_Integer) (uintptr_t(aLab.myLabelNode) % Upper) ); }
//=======================================================================
--
OCE packaging
More information about the debian-science-commits
mailing list