fix clang warnings reported by Tuncer Ayaz

R=rsc
http://codereview.appspot.com/6744054
This commit is contained in:
Russ Cox 2012-10-21 11:25:08 -04:00
parent 34d629c857
commit 0cfb376070
24 changed files with 586 additions and 588 deletions

View file

@ -230,7 +230,7 @@ stabssyminit(Fhdr *fp)
fun->u.stabs.framesize = sym.value - 4;
}
}else if(sym.type == N_LSYM){
if(sym.value >= 0){
if((int32)sym.value >= 0){
fun->u.stabs.frameptr = 0;
if(params)
fun->u.stabs.framesize = 8 - 4;