summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2024-02-08 09:42:51 -0500
committerPeter Zhu <[email protected]>2024-02-12 15:07:47 -0500
commit11ffee88b5a2ed67b4f181a48cf8eed772ae1c50 ()
treefdb6ed7e50465fd4f2d52082829268d10e2394d3
parent7256e38f867d88818d33a63f6704a02936929083 (diff)
Replace assert with RUBY_ASSERT in darray.h
assert does not print the bug report, only the file and line number of the assertion that failed. RUBY_ASSERT prints the full bug report, which makes it much easier to debug.
-rw-r--r--darray.h2
1 files changed, 1 insertions, 1 deletions
@@ -196,7 +196,7 @@ rb_darray_resize_capa_impl(void *ptr_to_ary, size_t new_capa, size_t header_size
new_ary->size = 0;
}
- assert(new_ary->size <= new_capa);
new_ary->capa = new_capa;