x86: fix vector validity check

develop
lethosor 2016-08-05 17:51:08 -04:00
parent dde6901534
commit ee7357b60e
1 changed files with 1 additions and 1 deletions

@ -332,7 +332,7 @@ end
-- Validation
function is_valid_vector(ref,size)
local ints = df.reinterpret_cast('uint64_t', ref)
local ints = df.reinterpret_cast('uintptr_t', ref)
return ints[0] <= ints[1] and ints[1] <= ints[2]
and (size == nil or (ints[1] - ints[0]) % size == 0)
end