mirror of
https://github.com/roc-lang/roc.git
synced 2025-07-16 02:55:00 +00:00
fix type to work on 32bit platforms
This commit is contained in:
parent
7f3c67ade9
commit
88a69a23a8
1 changed files with 1 additions and 1 deletions
|
@ -1887,7 +1887,7 @@ pub fn isValidUnicode(ptr: [*]const u8, len: usize) callconv(.C) bool {
|
|||
const step = size;
|
||||
var i: usize = 0;
|
||||
while (i + step < buf.len) {
|
||||
var bytes: usize = 0;
|
||||
var bytes: u64 = 0;
|
||||
@memcpy(@ptrCast([*]u8, &bytes), @ptrCast([*]const u8, buf) + i, size);
|
||||
const unicode_bytes = bytes & 0x8080_8080_8080_8080;
|
||||
if (unicode_bytes == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue