harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r505247 - /harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp
Date Fri, 09 Feb 2007 10:45:31 GMT
Author: varlax
Date: Fri Feb  9 02:45:30 2007
New Revision: 505247

URL: http://svn.apache.org/viewvc?view=rev&rev=505247
Log:
MSVC 2003 compilation warning fixed.

Modified:
    harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp?view=diff&rev=505247&r1=505246&r2=505247
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/jitrino/src/codegenerator/ia32/Ia32Inst.cpp Fri Feb  9
02:45:30 2007
@@ -89,7 +89,7 @@
 void Opnd::setMemOpndSubOpnd(MemOpndSubOpndKind so, Opnd * opnd)
 {
     assert(opnd);
-    assert((so != MemOpndSubOpndKind_Displacement)  || ((uint64)abs((int64)opnd->getImmValue())
<= 0xffffffff));
+    assert((so != MemOpndSubOpndKind_Displacement)  || (INT_MAX >= opnd->getImmValue()
&& INT_MIN <= opnd->getImmValue()));
     assert((so != MemOpndSubOpndKind_Scale)         || ((uint64)opnd->getImmValue() <=
8));
     assert(memOpndKind!=MemOpndKind_Null);
     memOpndSubOpnds[so]=opnd;



Mime
View raw message