Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Feb 12, 2021
1 parent 2ee3f78 commit e5bccd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/icu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ extern "C" {
// TODO(ry) Map error code to something useful.
pub fn set_common_data(data: &'static [u8]) -> Result<(), i32> {
// data must be 16-bit aligned.
if data.as_ptr() as usize & 0x77 != 0 {
if data.as_ptr() as usize & 0xFFFF != 0 {
return Err(-1);
}
let mut error_code = 0i32;
Expand Down

0 comments on commit e5bccd0

Please sign in to comment.