ext/fiddle/pointer.c in fiddle-1.0.5 vs ext/fiddle/pointer.c in fiddle-1.0.6
- old
+ new
@@ -100,22 +100,22 @@
TypedData_Get_Struct(obj, struct ptr_data, &fiddle_ptr_data_type, data);
if (data->ptr == NULL || data->size == 0) return NULL;
return data;
}
-static int
+static bool
fiddle_ptr_memory_view_available_p(VALUE obj)
{
return fiddle_ptr_check_memory_view(obj) != NULL;
}
-static int
+static bool
fiddle_ptr_get_memory_view(VALUE obj, rb_memory_view_t *view, int flags)
{
struct ptr_data *data = fiddle_ptr_check_memory_view(obj);
rb_memory_view_init_as_byte_array(view, obj, data->ptr, data->size, true);
- return 1;
+ return true;
}
static const rb_memory_view_entry_t fiddle_ptr_memory_view_entry = {
fiddle_ptr_get_memory_view,
NULL,