Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 109115 Details for
Bug 165257
dev-libs/glib-2.12.7 fails bit-test in 64bit
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for glib 2.12.7 that fixes a check failure for bit testing
glib-2.12.7-bit-test.patch (text/plain), 789 bytes, created by
Carlo Marcelo Arenas Belon
on 2007-02-04 12:49:11 UTC
(
hide
)
Description:
patch for glib 2.12.7 that fixes a check failure for bit testing
Filename:
MIME Type:
Creator:
Carlo Marcelo Arenas Belon
Created:
2007-02-04 12:49:11 UTC
Size:
789 bytes
patch
obsolete
>--- glib-2.12.7/tests/bit-test.c 2007-01-04 13:40:13.000000000 -0800 >+++ glib-2.12.8/tests/bit-test.c 2007-01-14 19:43:34.000000000 -0800 >@@ -13,7 +13,7 @@ > if (nth_bit >= 0) > { > if (G_LIKELY (nth_bit < GLIB_SIZEOF_LONG * 8 - 1)) >- mask &= -(1<<(nth_bit+1)); >+ mask &= -(1UL<<(nth_bit+1)); > else > mask = 0; > } >@@ -26,7 +26,7 @@ > if (nth_bit >= 0) > { > if (G_LIKELY (nth_bit < GLIB_SIZEOF_LONG * 8 - 1)) >- mask &= -(1<<(nth_bit+1)); >+ mask &= -(1UL<<(nth_bit+1)); > else > mask = 0; > } >@@ -37,7 +37,7 @@ > builtin_bit_nth_msf (gulong mask, gint nth_bit) > { > if (nth_bit >= 0 && nth_bit < GLIB_SIZEOF_LONG * 8) >- mask &= (1<<nth_bit)-1; >+ mask &= (1UL<<nth_bit)-1; > return mask ? GLIB_SIZEOF_LONG * 8 - 1 - __builtin_clzl(mask) : -1; > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 165257
: 109115