summaryrefslogtreecommitdiff
path: root/src/libmach/obj.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmach/obj.c')
-rw-r--r--src/libmach/obj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmach/obj.c b/src/libmach/obj.c
index 1ffe7a0ee..7d660787b 100644
--- a/src/libmach/obj.c
+++ b/src/libmach/obj.c
@@ -215,7 +215,7 @@ processprog(Prog *p, int doautos)
{
if(p->kind == aNone)
return 1;
- if(p->sym < 0 || p->sym >= NNAMES)
+ if((schar)p->sym < 0 || p->sym >= NNAMES)
return 0;
switch(p->kind)
{