diff options
| author | tylov <[email protected]> | 2023-08-15 10:34:05 +0200 |
|---|---|---|
| committer | tylov <[email protected]> | 2023-08-15 10:34:05 +0200 |
| commit | 5be09e526bc4ee4d1f586aa906e1f9a9c8e3e165 (patch) | |
| tree | 0eecf57ae25269e25ca14153eb53568351a5e79e /include/stc/cstr.h | |
| parent | 5898353f686619a5345df7babae9c3e2ed84db29 (diff) | |
| download | STC-modified-5be09e526bc4ee4d1f586aa906e1f9a9c8e3e165.tar.gz STC-modified-5be09e526bc4ee4d1f586aa906e1f9a9c8e3e165.zip | |
Fixed c_i2u() didn't trigger -Wsign-conversion warning.
Diffstat (limited to 'include/stc/cstr.h')
| -rw-r--r-- | include/stc/cstr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stc/cstr.h b/include/stc/cstr.h index 3822020f..bc147469 100644 --- a/include/stc/cstr.h +++ b/include/stc/cstr.h @@ -509,7 +509,7 @@ STC_DEF char* cstr_reserve(cstr* self, const intptr_t cap) { char* data = (char *)c_malloc(cap + 1); const intptr_t len = cstr_s_size(self); /* copy full short buffer to emulate realloc() */ - c_memcpy(data, self->sml.data, sizeof self->sml); + c_memcpy(data, self->sml.data, c_sizeof self->sml); self->lon.data = data; self->lon.size = (size_t)len; cstr_l_set_cap(self, cap); |
