summaryrefslogtreecommitdiffstats
path: root/newlib/libc/machine/spu/strncat.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/machine/spu/strncat.c')
-rw-r--r--newlib/libc/machine/spu/strncat.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/newlib/libc/machine/spu/strncat.c b/newlib/libc/machine/spu/strncat.c
index e1c3088a4..4348a06ee 100644
--- a/newlib/libc/machine/spu/strncat.c
+++ b/newlib/libc/machine/spu/strncat.c
@@ -42,8 +42,7 @@
char * strncat(char * __restrict__ dest, const char * __restrict__ src, size_t n)
{
- size_t len;
- unsigned int cmp, skip, mask;
+ unsigned int cmp, skip, mask, len;
vec_uchar16 *ptr, data;
vec_uint4 cnt, gt, N;
char *dst;
@@ -55,7 +54,7 @@ char * strncat(char * __restrict__ dest, const char * __restrict__ src, size_t n
/* Copy the src image until either the src string terminates
* or n characters are copied.
*/
- N = spu_promote(n, 0);
+ N = spu_promote((unsigned int)n, 0);
/* Determine the string length, not including termination character,
* clamped to n characters.