Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Implement requested changes
  • Loading branch information
philg314 committed Aug 7, 2022
commit e8d0edfc16dbd365e59dc3d7013e9691b6d35390
2 changes: 1 addition & 1 deletion Misc/ACKS
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,8 @@ Marius Gedminas
Jan-Philip Gehrcke
Thomas Gellekum
Gabriel Genellina
Christos Georgiou
Philip Georgi
Comment thread
philg314 marked this conversation as resolved.
Christos Georgiou
Elazar (אלעזר) Gershuni
Ben Gertzfield
Nadim Ghaznavi
Expand Down
2 changes: 1 addition & 1 deletion Objects/unicodeobject.c
Original file line number Diff line number Diff line change
Expand Up @@ -2482,7 +2482,7 @@ unicode_fromformat_arg(_PyUnicodeWriter *writer,
}
assert(len >= 0);

int negative = buffer[0]=='-'?1:0;
int negative = (buffer[0] == '-');
len -= negative;

precision = Py_MAX(precision, len);
Expand Down