Mercurial > hg > truffle
comparison truffle/com.oracle.truffle.object/src/com/oracle/truffle/object/ShapeImpl.java @ 22197:c8f4168061ea
fix long values not being unboxed
author | Andreas Woess <andreas.woess@oracle.com> |
---|---|
date | Fri, 25 Sep 2015 16:19:41 +0200 |
parents | dc83cc1f94f2 |
children | 47172a9b40ac |
comparison
equal
deleted
inserted
replaced
22196:364e3f024643 | 22197:c8f4168061ea |
---|---|
1021 Class<?> initialType = null; | 1021 Class<?> initialType = null; |
1022 if (value instanceof Integer) { | 1022 if (value instanceof Integer) { |
1023 initialType = int.class; | 1023 initialType = int.class; |
1024 } else if (value instanceof Double) { | 1024 } else if (value instanceof Double) { |
1025 initialType = double.class; | 1025 initialType = double.class; |
1026 } else if (value instanceof Long) { | |
1027 initialType = long.class; | |
1026 } else if (value instanceof Boolean) { | 1028 } else if (value instanceof Boolean) { |
1027 initialType = boolean.class; | 1029 initialType = boolean.class; |
1028 } else { | 1030 } else { |
1029 initialType = Object.class; | 1031 initialType = Object.class; |
1030 } | 1032 } |