Mercurial > hg > truffle
diff src/share/vm/jvmci/jvmciHashtable.cpp @ 21587:59c3f921e454
fixes for windows build (size_t conversion, missing precompiled.hpp, missing strtof, strtoll in Windows SDK)
author | Christian Wirth <christian.wirth@oracle.com> |
---|---|
date | Fri, 29 May 2015 12:59:12 +0200 |
parents | 47bebae7454f |
children |
line wrap: on
line diff
--- a/src/share/vm/jvmci/jvmciHashtable.cpp Fri May 29 11:35:20 2015 +0200 +++ b/src/share/vm/jvmci/jvmciHashtable.cpp Fri May 29 12:59:12 2015 +0200 @@ -21,6 +21,7 @@ * questions. */ +#include "precompiled.hpp" #include "jvmci/jvmciHashtable.hpp" template<class K, class V> bool JVMCIHashtable<K,V>::add(V value, bool replace) { @@ -54,7 +55,7 @@ template<class K, class V> void JVMCIHashtable<K, V>::for_each(ValueClosure<V>* closure) { for (size_t i = 0; i < table_size(); ++i) { - for (JVMCIHashtableEntry<V>* e = bucket(i); e != NULL && !closure->is_aborted(); e = e->next()) { + for (JVMCIHashtableEntry<V>* e = bucket((int)i); e != NULL && !closure->is_aborted(); e = e->next()) { closure->do_value(e->literal_addr()); } } @@ -62,7 +63,7 @@ template<class K, class V> JVMCIHashtable<K,V>::~JVMCIHashtable() { for (size_t i = 0; i < table_size(); ++i) { - JVMCIHashtableEntry<V>* e = bucket(i); + JVMCIHashtableEntry<V>* e = bucket((int)i); while (e != NULL) { JVMCIHashtableEntry<V>* current = e; e = e->next();