mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 22:08:41 +00:00
maintain explicit casts in cstring -> string paths
This commit is contained in:
@@ -215,8 +215,8 @@ str32_cstring(U32 *c){
|
|||||||
internal String8
|
internal String8
|
||||||
str8_cstring_capped(void *cstr, void *cap)
|
str8_cstring_capped(void *cstr, void *cap)
|
||||||
{
|
{
|
||||||
char *ptr = cstr;
|
char *ptr = (char *)cstr;
|
||||||
char *opl = cap;
|
char *opl = (char *)cap;
|
||||||
for (;ptr < opl && *ptr != 0; ptr += 1);
|
for (;ptr < opl && *ptr != 0; ptr += 1);
|
||||||
U64 size = (U64)(ptr - (char *)cstr);
|
U64 size = (U64)(ptr - (char *)cstr);
|
||||||
String8 result = str8((U8*)cstr, size);
|
String8 result = str8((U8*)cstr, size);
|
||||||
@@ -226,8 +226,8 @@ str8_cstring_capped(void *cstr, void *cap)
|
|||||||
internal String16
|
internal String16
|
||||||
str16_cstring_capped(void *cstr, void *cap)
|
str16_cstring_capped(void *cstr, void *cap)
|
||||||
{
|
{
|
||||||
U16 *ptr = cstr;
|
U16 *ptr = (U16 *)cstr;
|
||||||
U16 *opl = cap;
|
U16 *opl = (U16 *)cap;
|
||||||
for (;ptr < opl && *ptr != 0; ptr += 1);
|
for (;ptr < opl && *ptr != 0; ptr += 1);
|
||||||
U64 size = (U64)(ptr - (U16 *)cstr);
|
U64 size = (U64)(ptr - (U16 *)cstr);
|
||||||
String16 result = str16(cstr, size);
|
String16 result = str16(cstr, size);
|
||||||
|
|||||||
Reference in New Issue
Block a user