aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2024-04-17 18:33:37 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2024-04-17 18:33:37 -0400
commite93562bc0a4c3eb2bfd273d435f110140b677d0e (patch)
treec10be7b62809aec1720685e09b21cbc92198f689 /tools
parent81c84f9683a40d60c0d1ae347c175d9205d186f8 (diff)
Replace deprecated ptr_from_string with raw_data
Diffstat (limited to 'tools')
-rw-r--r--tools/odinfmt/flag/flag.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/odinfmt/flag/flag.odin b/tools/odinfmt/flag/flag.odin
index 010a48b..88dc1f8 100644
--- a/tools/odinfmt/flag/flag.odin
+++ b/tools/odinfmt/flag/flag.odin
@@ -103,7 +103,7 @@ parse_args :: proc(ctx: ^Flag_Context, args: []string) -> Flag_Error {
}
case Type_Info_String:
raw_string := cast(^mem.Raw_String)flag.data;
- raw_string.data = strings.ptr_from_string(value);
+ raw_string.data = raw_data(value);
raw_string.len = len(value);
case Type_Info_Float:
switch flag.type.size {