< prev index next >

src/share/vm/metaprogramming/integerTypes.hpp

Print this page
rev 13265 : imported patch IntegerTypes
rev 13268 : [mq]: Atomic_polishing_v2

*** 222,232 **** }; // Cast integral value to pointer. template<typename T, typename U> struct IntegerTypes::Cast<T, U, true, true, false> VALUE_OBJ_CLASS_SPEC { ! T operator()(U x) const { return (T)((void*)x); } }; // Same integral type is identity conversion. template<typename T> struct IntegerTypes::Cast<T, T, true, false, false> VALUE_OBJ_CLASS_SPEC { --- 222,232 ---- }; // Cast integral value to pointer. template<typename T, typename U> struct IntegerTypes::Cast<T, U, true, true, false> VALUE_OBJ_CLASS_SPEC { ! T operator()(U x) const { return reinterpret_cast<T>(x); } }; // Same integral type is identity conversion. template<typename T> struct IntegerTypes::Cast<T, T, true, false, false> VALUE_OBJ_CLASS_SPEC {
< prev index next >