aboutsummaryrefslogtreecommitdiff
path: root/gas/symbols.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-08-21 05:55:13 +0000
committerAlan Modra <amodra@gmail.com>2013-08-21 05:55:13 +0000
commitb4e6cb80521688d11ed79003d891b082ab0978cb (patch)
tree051d30be5931c5548f0dfc856059c5391df1a3b1 /gas/symbols.c
parent934bce08d2a83bfce6edf2d430e475df22506d69 (diff)
downloadgdb-b4e6cb80521688d11ed79003d891b082ab0978cb.zip
gdb-b4e6cb80521688d11ed79003d891b082ab0978cb.tar.gz
gdb-b4e6cb80521688d11ed79003d891b082ab0978cb.tar.bz2
* symbols.c (fb_label_instance_inc, fb_label_instance): Properly
range check label number for use with fb_low_counter array.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/symbols.c b/gas/symbols.c
index 05ae6a7..67fc84b 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -1749,7 +1749,7 @@ fb_label_instance_inc (long label)
{
long *i;
- if (label < FB_LABEL_SPECIAL)
+ if ((unsigned long) label < FB_LABEL_SPECIAL)
{
++fb_low_counter[label];
return;
@@ -1797,7 +1797,7 @@ fb_label_instance (long label)
{
long *i;
- if (label < FB_LABEL_SPECIAL)
+ if ((unsigned long) label < FB_LABEL_SPECIAL)
{
return (fb_low_counter[label]);
}