Skip to content

Commit 88716c7

Browse files
authored
Merge pull request #788 from TitanNano/jovan/unnecessary_pointer_cast
Pointer is already *const u32 on aarch64
2 parents 7d576c5 + e003490 commit 88716c7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

godot-core/src/builtin/string/string_chars.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub fn validate_unicode_scalar_sequence(seq: &[u32]) -> Option<&[char]> {
5555
break;
5656
}
5757

58-
let block = vld1q_u32(ptr as *const u32);
58+
let block = vld1q_u32(ptr);
5959

6060
// check if has any character bigger than `char::MAX`
6161
if vmaxvq_u32(block) >= char::MAX as u32 {

0 commit comments

Comments
 (0)