diff --git a/src/binding.cc b/src/binding.cc index 2f746ef3..8568a0b6 100644 --- a/src/binding.cc +++ b/src/binding.cc @@ -52,7 +52,7 @@ static_assert(sizeof(v8::ReturnValue) == sizeof(size_t) * 1, static_assert(sizeof(v8::TryCatch) == sizeof(size_t) * 6, "TryCatch size mismatch"); -static_assert(sizeof(v8::Location) == sizeof(size_t) * 1, +static_assert(sizeof(v8::Location) == sizeof(int) * 2, "Location size mismatch"); static_assert(sizeof(v8::SnapshotCreator) == sizeof(size_t) * 1, diff --git a/src/module.rs b/src/module.rs index 995804cc..7d68386c 100644 --- a/src/module.rs +++ b/src/module.rs @@ -195,7 +195,7 @@ extern "C" { /// A location in JavaScript source. #[repr(C)] #[derive(Debug)] -pub struct Location([usize; 1]); +pub struct Location([i32; 2]); impl Location { pub fn get_line_number(&self) -> int {