Skip to content

Commit 4a5d60a

Browse files
committed
xrCore/xr_trims: Fixed compilation.
1 parent 752f904 commit 4a5d60a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/xrCore/xr_trims.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ LPSTR _TrimLeft(LPSTR str)
77
while (*p && (u8(*p) <= u8(' '))) p++;
88
if (p != str)
99
{
10-
for (LPSTR t = str; *p; t++, p++) *t = *p;
10+
LPSTR t = str;
11+
for (; *p; t++, p++) *t = *p;
1112
*t = 0;
1213
}
1314
return str;
@@ -427,7 +428,7 @@ xr_string& _Trim(xr_string& str)
427428
LPCSTR _CopyVal(LPCSTR src, xr_string& dst, char separator)
428429
{
429430
LPCSTR p;
430-
ptrdiff_t n;
431+
std::ptrdiff_t n;
431432
p = strchr(src, separator);
432433
n = (p > 0) ? (p - src) : xr_strlen(src);
433434
dst = src;

0 commit comments

Comments
 (0)