Skip to content

Commit 456f5ef

Browse files
committed
gcc.dg/pr90838-2.c: Replace long with long long
Since gcc.dg/pr90838-2.c is only for 64-bit integer, replace long with long long for ILP32 targets. * gcc.dg/pr90838-2.c (ctz4): Replace long with long long. Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
1 parent aa68eb8 commit 456f5ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gcc/testsuite/gcc.dg/pr90838-2.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ static const char table[128] = {
2626
57, 58, 59, 60, 61, 62, 63, 64
2727
};
2828

29-
int ctz4 (unsigned long x)
29+
int ctz4 (unsigned long long x)
3030
{
31-
unsigned long lsb = x & -x;
31+
unsigned long long lsb = x & -x;
3232
return table[(lsb * magic) >> 58];
3333
}
3434

0 commit comments

Comments
 (0)