Skip to content

Commit

Permalink
Update lcc cpp memmove function (we don't use lcc cpp right now but t…
Browse files Browse the repository at this point in the history
…he fix is obvious).

From drh/lcc#16
  • Loading branch information
Brian Callahan committed Feb 23, 2016
1 parent 4639bb7 commit e5ee7f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lang/lcc/cpp/unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ memmove(void *dp, const void *sp, size_t n)
unsigned char *cdp, *csp;

if (n==0)
return 0;
return dp;
cdp = dp;
csp = (unsigned char *)sp;
if (cdp < csp) {
Expand All @@ -112,5 +112,5 @@ memmove(void *dp, const void *sp, size_t n)
*--cdp = *--csp;
} while (--n);
}
return 0;
return dp;
}

0 comments on commit e5ee7f4

Please sign in to comment.