Skip to content

Commit c5cf190

Browse files
committed
Fix error in formatting StringFormatter exception
1 parent e5199fd commit c5cf190

File tree

1 file changed

+2
-2
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/formatting

1 file changed

+2
-2
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/runtime/formatting/StringFormatter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2019, Oracle and/or its affiliates.
2+
* Copyright (c) 2017, 2020, Oracle and/or its affiliates.
33
* Copyright (c) -2016 Jython Developers
44
*
55
* Licensed under PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2
@@ -436,7 +436,7 @@ public Object format(Object args1, CallNode callNode, BiFunction<Object, String,
436436
break;
437437

438438
default:
439-
throw core.raise(ValueError, "unsupported format character '%c' (0x%x) at index %d", spec.type, spec.type, index - 1);
439+
throw core.raise(ValueError, "unsupported format character '%c' (0x%x) at index %d", spec.type, (int) spec.type, index - 1);
440440
}
441441

442442
// Pad the result as specified (in-place, in the buffer).

0 commit comments

Comments
 (0)