You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by gs...@apache.org on 2007/12/19 17:49:56 UTC

svn commit: r605614 - /harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_br.cpp

Author: gshimansky
Date: Wed Dec 19 08:49:55 2007
New Revision: 605614

URL: http://svn.apache.org/viewvc?rev=605614&view=rev
Log:
Applied patch from HARMONY-5309
[drlvm][jit][jet][EUT] 274 NPE in checkAndTagAsMalformed on Linux x86_64


Modified:
    harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_br.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_br.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_br.cpp?rev=605614&r1=605613&r2=605614&view=diff
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_br.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/jitrino/src/jet/cg_br.cpp Wed Dec 19 08:49:55 2007
@@ -231,7 +231,7 @@
     // complex address form:
     //      [table + index*sizeof(void*) - low()*sizeof(void*)],
     // but only if low()*sizeof(void*) does fit into displacement ...
-    int tmp = -jinst.low()/sizeof(void*);
+    int tmp = -jinst.low();
     const int LO_BOUND = INT_MIN/(int)sizeof(void*);
     const int UP_BOUND = INT_MAX/(int)sizeof(void*);
     if (LO_BOUND<=tmp && tmp<=UP_BOUND) {