comparison src/share/vm/ci/ciConstant.cpp @ 1350:1c9c45172908

6939804: ciConstant::print() prints incorrect bool value Summary: Fix typo. Reviewed-by: never
author kvn
date Fri, 02 Apr 2010 11:55:00 -0700
parents a61af66fc99e
children c18cbe5936b8
comparison
equal deleted inserted replaced
1349:547cbe6dacc5 1350:1c9c45172908
34 void ciConstant::print() { 34 void ciConstant::print() {
35 tty->print("<ciConstant type=%s value=", 35 tty->print("<ciConstant type=%s value=",
36 basictype_to_str(basic_type())); 36 basictype_to_str(basic_type()));
37 switch (basic_type()) { 37 switch (basic_type()) {
38 case T_BOOLEAN: 38 case T_BOOLEAN:
39 tty->print("%s", bool_to_str(_value._int == 0)); 39 tty->print("%s", bool_to_str(_value._int != 0));
40 break; 40 break;
41 case T_CHAR: 41 case T_CHAR:
42 case T_BYTE: 42 case T_BYTE:
43 case T_SHORT: 43 case T_SHORT:
44 case T_INT: 44 case T_INT: