Commit 2de12cd7 authored by Raymond Toy's avatar Raymond Toy

Fix compiler warning

clang complains:

 warning: incompatible pointer to integer conversion passing
      'lispobj *' (aka 'unsigned long *') to parameter of type 'lispobj' (aka 'unsigned long');
      dereference with * [-Wint-conversion]
        || in_range_p(addr, control_stack, control_stack_size)

So cast control_stack to lispobj.  Same complaint for binding_stack
too.
parent 7c79326d
Pipeline #324 passed with stage
in 17 minutes and 20 seconds
......@@ -385,8 +385,8 @@ valid_addr(os_vm_address_t addr)
|| in_range_p(addr, STATIC_SPACE_START, static_space_size)
|| in_range_p(addr, DYNAMIC_0_SPACE_START, dynamic_space_size)
|| in_range_p(addr, DYNAMIC_1_SPACE_START, dynamic_space_size)
|| in_range_p(addr, control_stack, control_stack_size)
|| in_range_p(addr, binding_stack, binding_stack_size))
|| in_range_p(addr, (lispobj) control_stack, control_stack_size)
|| in_range_p(addr, (lispobj) binding_stack, binding_stack_size))
return TRUE;
return FALSE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment