mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8132051: Better byte behavior
Co-authored-by: Roland Westerlin <roland.westerlin@oracle.com> Co-authored-by: Vladimir Kozlov <vladimir.kozlov@oracle.com> Co-authored-by: John Rose <john.r.rose@oracle.com> Reviewed-by: bdelsart, roland, kvn, jrose, ahgross
This commit is contained in:
parent
ed18f94d21
commit
200784d505
40 changed files with 514 additions and 88 deletions
|
@ -1025,7 +1025,7 @@ static BasicType basic_type_mirror_to_basic_type(oop basic_type_mirror, TRAPS) {
|
|||
static void narrow(jvalue* value, BasicType narrow_type, TRAPS) {
|
||||
switch (narrow_type) {
|
||||
case T_BOOLEAN:
|
||||
value->z = (jboolean)value->i;
|
||||
value->z = (jboolean) (value->i & 1);
|
||||
return;
|
||||
case T_BYTE:
|
||||
value->b = (jbyte)value->i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue