mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-04 06:38:47 +00:00
v0.1.3
This commit is contained in:
+3
-9
@@ -946,11 +946,9 @@ bprintf :: proc(b: ^[]byte, fmt: string, args: ..any) -> int {
|
||||
// Process a "verb"
|
||||
i++;
|
||||
|
||||
|
||||
#label prefix_loop
|
||||
for ; i < end; i++ {
|
||||
skip_loop := false;
|
||||
c := fmt[i];
|
||||
match c {
|
||||
match fmt[i] {
|
||||
case '+':
|
||||
fi.plus = true;
|
||||
case '-':
|
||||
@@ -963,11 +961,7 @@ bprintf :: proc(b: ^[]byte, fmt: string, args: ..any) -> int {
|
||||
case '0':
|
||||
fi.zero = !fi.minus;
|
||||
default:
|
||||
skip_loop = true;
|
||||
}
|
||||
|
||||
if skip_loop {
|
||||
break;
|
||||
break prefix_loop;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user