Skip to content

Commit fa3ed67

Browse files
committed
Fixup * format specifier
1 parent 65623a7 commit fa3ed67

File tree

1 file changed

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

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ int getNumber() {
142142
} catch (OverflowException e) {
143143
value = Long.MAX_VALUE;
144144
}
145+
} else if (o instanceof Boolean) {
146+
return (Boolean) o ? 1 : 0;
145147
} else {
146148
throw raiseNode.raise(TypeError, ErrorMessages.STAR_WANTS_INT);
147149
}

0 commit comments

Comments
 (0)