mirror of
https://github.com/odin-lang/Odin.git
synced 2026-01-04 12:07:45 +00:00
Fix reflect.as_pointer
This commit is contained in:
@@ -1409,7 +1409,7 @@ as_pointer :: proc(a: any) -> (value: rawptr, valid: bool) {
|
||||
#partial switch info in ti.variant {
|
||||
case Type_Info_Pointer:
|
||||
valid = true
|
||||
value = a.data
|
||||
value = (^rawptr)(a.data)^
|
||||
|
||||
case Type_Info_String:
|
||||
valid = true
|
||||
|
||||
Reference in New Issue
Block a user