Masking when casting to u32 like this is only needed in Java to work around the lack of unsigned types. Remove.