Skip to content

Commit beff070

Browse files
committed
cleanup arbitrary constant
1 parent 3893f94 commit beff070

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/org/perlonjava/runtime/RuntimeScalar.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -430,10 +430,10 @@ private String formatLikePerl(double value) {
430430

431431
public String toStringRef() {
432432
String ref = switch (type) {
433-
case UNDEF -> "SCALAR(0x14500834042)";
433+
case UNDEF -> "SCALAR(0x" + scalarUndef.hashCode() + ")";
434434
case CODE, GLOB -> {
435435
if (value == null) {
436-
yield "CODE(0x14500834042)";
436+
yield "CODE(0x" + scalarUndef.hashCode() + ")";
437437
}
438438
yield ((RuntimeCode) value).toStringRef();
439439
}

0 commit comments

Comments
 (0)