gingerBill 4 years ago
parent
commit
5420cc083d
1 changed files with 3 additions and 3 deletions
  1. 3 3
      core/fmt/fmt.odin

+ 3 - 3
core/fmt/fmt.odin

@@ -641,9 +641,9 @@ fmt_write_padding :: proc(fi: ^Info, width: int) {
 		return;
 	}
 
-	pad_byte: byte = '0';
-	if fi.space {
-		pad_byte = ' ';
+	pad_byte: byte = ' ';
+	if !fi.space {
+		pad_byte = '0';
 	}
 
 	for i := 0; i < width; i += 1 {