aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/extable.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/extable.c b/lib/extable.c
index 463f4560f16d..179c08745595 100644
--- a/lib/extable.c
+++ b/lib/extable.c
@@ -57,10 +57,10 @@ search_extable(const struct exception_table_entry *first,
57 while (first <= last) { 57 while (first <= last) {
58 const struct exception_table_entry *mid; 58 const struct exception_table_entry *mid;
59 59
60 mid = (last - first) / 2 + first; 60 mid = ((last - first) >> 1) + first;
61 /* 61 /*
62 * careful, the distance between entries can be 62 * careful, the distance between value and insn
63 * larger than 2GB: 63 * can be larger than MAX_LONG:
64 */ 64 */
65 if (mid->insn < value) 65 if (mid->insn < value)
66 first = mid + 1; 66 first = mid + 1;