Skip to content

Commit

Permalink
xrCore/xr_trims: Fixed compilation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaffeine committed Nov 6, 2015
1 parent 752f904 commit 4a5d60a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/xrCore/xr_trims.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ LPSTR _TrimLeft(LPSTR str)
while (*p && (u8(*p) <= u8(' '))) p++;
if (p != str)
{
for (LPSTR t = str; *p; t++, p++) *t = *p;
LPSTR t = str;
for (; *p; t++, p++) *t = *p;
*t = 0;
}
return str;
Expand Down Expand Up @@ -427,7 +428,7 @@ xr_string& _Trim(xr_string& str)
LPCSTR _CopyVal(LPCSTR src, xr_string& dst, char separator)
{
LPCSTR p;
ptrdiff_t n;
std::ptrdiff_t n;
p = strchr(src, separator);
n = (p > 0) ? (p - src) : xr_strlen(src);
dst = src;
Expand Down

0 comments on commit 4a5d60a

Please sign in to comment.