From 2ff55f8000f136c8de4d3633b8669e8847545033 Mon Sep 17 00:00:00 2001 From: Eric Dumazet Date: Wed, 6 Feb 2008 01:37:49 -0800 Subject: [PATCH] --- yaml --- r: 83469 b: refs/heads/master c: 15ae02baf025750cd79ef3929c28f7083a088bd2 h: refs/heads/master i: 83467: 9dd76ad7db45b3833d93d57332d635678b79b6c9 v: v3 --- [refs] | 2 +- trunk/lib/extable.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 765f2cfccf6c..6dad590a006d 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: f63fd7e299ee13da071ecfce2b90b58c5e1562b1 +refs/heads/master: 15ae02baf025750cd79ef3929c28f7083a088bd2 diff --git a/trunk/lib/extable.c b/trunk/lib/extable.c index 463f4560f16d..179c08745595 100644 --- a/trunk/lib/extable.c +++ b/trunk/lib/extable.c @@ -57,10 +57,10 @@ search_extable(const struct exception_table_entry *first, while (first <= last) { const struct exception_table_entry *mid; - mid = (last - first) / 2 + first; + mid = ((last - first) >> 1) + first; /* - * careful, the distance between entries can be - * larger than 2GB: + * careful, the distance between value and insn + * can be larger than MAX_LONG: */ if (mid->insn < value) first = mid + 1;