diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2012-05-12 17:40:53 +0200 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2012-05-12 17:41:37 +0200 |
commit | c7df0112025704a914ab5071e8626bba2a5c007f (patch) | |
tree | edad4e75747af3c80a70109dda3df20c6b8566db /sysdeps/powerpc | |
parent | dc70356cbfc649af8e39c9a8d509fefd766fa8ef (diff) | |
download | glibc-c7df0112025704a914ab5071e8626bba2a5c007f.tar.gz glibc-c7df0112025704a914ab5071e8626bba2a5c007f.tar.xz glibc-c7df0112025704a914ab5071e8626bba2a5c007f.zip |
Fix warning in powerpc bcopy
Diffstat (limited to 'sysdeps/powerpc')
-rw-r--r-- | sysdeps/powerpc/memmove.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/powerpc/memmove.c b/sysdeps/powerpc/memmove.c index 89182838e9..1617ecea95 100644 --- a/sysdeps/powerpc/memmove.c +++ b/sysdeps/powerpc/memmove.c @@ -50,12 +50,12 @@ MEMMOVE (a1, a2, len) unsigned long int srcp = (long int) src; /* If there is no overlap between ranges, call the builtin memcpy. */ - if ( (dstp >= (srcp + len)) || (srcp > (dstp + len)) ) - return __builtin_memcpy (dest, src, len); + if (dstp >= srcp + len || srcp > dstp + len) + __builtin_memcpy (dest, src, len); /* This test makes the forward copying code be used whenever possible. Reduces the working set. */ - if (dstp - srcp >= len) /* *Unsigned* compare! */ + else if (dstp - srcp >= len) /* *Unsigned* compare! */ { /* Copy from the beginning to the end. */ |