Skip to content

Commit

Permalink
fixed GCC compiler error: "lvalue required as increment operand"
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Smolak committed Dec 14, 2012
1 parent b12dc8b commit e67d0c7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/core/s-make.c
Expand Up @@ -125,20 +125,21 @@
{
#ifdef OS_WIDE_CHAR
REBSER *dst;
if (Is_Wide((REBUNI*)src, len)) {
REBUNI *str = (REBUNI*)src;
if (Is_Wide(str, len)) {
REBUNI *up;
dst = Make_Unicode(len);
SERIES_TAIL(dst) = len;
up = UNI_HEAD(dst);
while (len-- > 0) *up++ = *((REBUNI*)src)++;
while (len-- > 0) *up++ = *str++;
*up = 0;
}
else {
REBYTE *bp;
dst = Make_Binary(len);
SERIES_TAIL(dst) = len;
bp = BIN_HEAD(dst);
while (len-- > 0) *bp++ = (REBYTE)*((REBUNI*)src)++;
while (len-- > 0) *bp++ = (REBYTE)*str++;
*bp = 0;
}
return dst;
Expand Down

0 comments on commit e67d0c7

Please sign in to comment.