Skip to content

Commit 7f952c6

Browse files
committed
runtime: minor fix for juleToStr
1 parent ea975e8 commit 7f952c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

std/runtime/strconv.jule

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ fn juleToStr[T](x: T): str {
280280
| comptime::Any | comptime::TypeEnum | comptime::Trait:
281281
unsafe {
282282
dt := (*runtime::DynamicType)(&x)
283-
ret sys::Addrcall[str](uintptr(dt.Type.ToStr), dt.Data.Data)
283+
ret sys::Addrcall[str](uintptr(dt.Type.ToStr), dt.Data.Ptr)
284284
}
285285
| comptime::Func:
286286
ret unsafe { ptrToStr((*runtime::Func)(&x).Addr) }

0 commit comments

Comments
 (0)