Skip to content

Commit 61360fd

Browse files
fedetftgithub-cygwin
authored andcommitted
libc: string: Fix warning in memrchr.c
1 parent 4f9fa1e commit 61360fd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

newlib/libc/string/local.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ int __wcwidth (wint_t);
2121
* This macro is used to skip a few bytes to find an aligned pointer.
2222
* It's better to keep it as is even if _HAVE_HW_MISALIGNED_ACCESS is enabled,
2323
* to avoid small performance penalties (if they are not zero). */
24-
#define UNALIGNED_X(X) ((long)X & (sizeof (long) - 1))
24+
#define UNALIGNED_X(X) ((long)(X) & (sizeof (long) - 1))
2525

2626
#ifdef _HAVE_HW_MISALIGNED_ACCESS
2727
/* Hardware performs unaligned operations with little

0 commit comments

Comments
 (0)