Add assume

This commit is contained in:
Patrick Pelissier committed 2019-04-20 12:33:08 +02:00
1 parent 00f1b1fc4f
commit 229d21ef72
1 file changed
+1
+1
View File
@@ -214,6 +214,7 @@ stringi_fit2size (string_t v, size_t size_alloc)
abort();
return;
}
M_ASSUME(ptr != &v->u.stack.buffer[1]);
if (string_int_stack_p(v)) {
/* Copy the stack allocation into the heap allocation */
memcpy(ptr, &v->u.stack.buffer[1], v->u.stack.buffer[0]+1);