need a pragma to supress MSC constant overflow warning
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 19 Jul 2005 14:35:41 +0000 (14:35 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Tue, 19 Jul 2005 14:35:41 +0000 (14:35 +0000)
[r6245]

ir/adt/hashptr.h

index 5755b3e..dfe2b37 100644 (file)
@@ -48,6 +48,10 @@ static INLINE unsigned firm_fnv_hash(const unsigned char *data, unsigned bytes)
  */
 #define HASH_STR(str,len) firm_fnv_hash((const unsigned char *) (str), (len))
 
+#ifdef _MSC_VER
+#pragma warning(disable:4307)
+#endif _MSC_VER
+
 static INLINE unsigned _hash_combine(unsigned x, unsigned y)
 {
   unsigned hash = _FIRM_FNV_TIMES_PRIME(_FIRM_FNV_OFFSET_BASIS);
@@ -57,6 +61,10 @@ static INLINE unsigned _hash_combine(unsigned x, unsigned y)
   return hash;
 }
 
+#ifdef _MSC_VER
+#pragma warning(default:4307)
+#endif _MSC_VER
+
 /**
  * Make one hash value out of two others.
  * @param a One hash value.