diff options
| author | gingerBill <bill@gingerbill.org> | 2024-08-13 14:27:25 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-08-13 14:27:25 +0100 |
| commit | 62911539cd8c3fc5372e0e65285b6db8fd704cd5 (patch) | |
| tree | 52a9882fefc4ece5c5049efcb9a5c7a63d767da7 /core/strings | |
| parent | e3d5bbe62c34e6d84e59d3c8b78ff9e2dc1f348d (diff) | |
Minor style change
Diffstat (limited to 'core/strings')
| -rw-r--r-- | core/strings/builder.odin | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/strings/builder.odin b/core/strings/builder.odin index 6bb0b2018..97a615990 100644 --- a/core/strings/builder.odin +++ b/core/strings/builder.odin @@ -516,7 +516,7 @@ pop_byte :: proc(b: ^Builder) -> (r: byte) { } r = b.buf[len(b.buf)-1] - d := cast(^runtime.Raw_Dynamic_Array)&b.buf + d := (^runtime.Raw_Dynamic_Array)(&b.buf) d.len = max(d.len-1, 0) return } @@ -536,7 +536,7 @@ pop_rune :: proc(b: ^Builder) -> (r: rune, width: int) { } r, width = utf8.decode_last_rune(b.buf[:]) - d := cast(^runtime.Raw_Dynamic_Array)&b.buf + d := (^runtime.Raw_Dynamic_Array)(&b.buf) d.len = max(d.len-width, 0) return } |