Skip to content

Commit

Permalink
std::jule::integrated: revert misunderstanding fix-path of U16PtrToStr
Browse files Browse the repository at this point in the history
  • Loading branch information
mertcandav committed Aug 3, 2024
1 parent bdc56c7 commit a9d09c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/jule/integrated/conv.jule
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ unsafe fn U16PtrToStr(s: *u16): str {
let mut i = 0
for ; i++ {
let r = s[i]
codePage = append(codePage, r)
if r == 0 {
ret str(utf16::Decode(codePage))
}
codePage = append(codePage, r)
}
ret ""
}
Expand Down

0 comments on commit a9d09c2

Please sign in to comment.