harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r482159 - /harmony/enhanced/drlvm/trunk/vm/em/src/MTable.cpp
Date Mon, 04 Dec 2006 12:49:53 GMT
Author: varlax
Date: Mon Dec  4 04:49:52 2006
New Revision: 482159

URL: http://svn.apache.org/viewvc?view=rev&rev=482159
Log:
Applied HARMONY-2388 [drlvm][em]EM parses numbers in its args incorrectly.
Tested on SUSE9

Modified:
    harmony/enhanced/drlvm/trunk/vm/em/src/MTable.cpp

Modified: harmony/enhanced/drlvm/trunk/vm/em/src/MTable.cpp
URL: http://svn.apache.org/viewvc/harmony/enhanced/drlvm/trunk/vm/em/src/MTable.cpp?view=diff&rev=482159&r1=482158&r2=482159
==============================================================================
--- harmony/enhanced/drlvm/trunk/vm/em/src/MTable.cpp (original)
+++ harmony/enhanced/drlvm/trunk/vm/em/src/MTable.cpp Mon Dec  4 04:49:52 2006
@@ -21,7 +21,7 @@
 
 #include "MTable.h"
 #include <assert.h>
-
+#include <algorithm>
 #include "jit_import.h"
 
 MTable::~MTable() {
@@ -34,8 +34,8 @@
 
 bool isNum(const std::string& str) {
     return str.size() > 0 && str.size() < 10 
-        && *std::min(str.begin(), str.end()) >= '0'
-        && *std::max(str.begin(), str.end()) <= '9'; 
+        && *std::min_element(str.begin(), str.end()) >= '0'
+        && *std::max_element(str.begin(), str.end()) <= '9'; 
 }
 
 bool MTable::addMethodFilter(const std::string& configLine) {



Mime
View raw message