changeset 8850:efdbe9b904ad

8150426: Wrong cast in metadata_at_put Summary: Fix cast. Reviewed-by: dholmes, coleenp, jprovino Contributed-by: timo.kinnunen@gmail.com
author kbarrett
date Tue, 23 Feb 2016 18:58:36 -0500
parents 6688d6c6a225
children 6ab57fe8b51f f96fcd9e1e1b
files src/share/vm/oops/typeArrayOop.hpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/vm/oops/typeArrayOop.hpp	Tue Feb 20 07:10:42 2018 -0500
+++ b/src/share/vm/oops/typeArrayOop.hpp	Tue Feb 23 18:58:36 2016 -0500
@@ -129,7 +129,7 @@
   Metadata* metadata_at(int which) const {
     return (Metadata*)*long_at_addr(which); }
   void metadata_at_put(int which, Metadata* contents) {
-    *long_at_addr(which) = (long)contents;
+    *long_at_addr(which) = (jlong)contents;
   }
 #else
   Metadata* metadata_at(int which) const {