diff ticoff/tables.c @ 75:1a23ff9a81de

tiobjd: dumpsym implemented
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Tue, 25 Mar 2014 20:38:31 +0000
parents 2eef88395908
children da103b9377e3
line wrap: on
line diff
--- a/ticoff/tables.c	Tue Mar 25 18:55:36 2014 +0000
+++ b/ticoff/tables.c	Tue Mar 25 20:38:31 2014 +0000
@@ -98,7 +98,7 @@
 		in->name = get_secorsym_name(symtab_raw[n].e_name);
 		in->value = get_u32(symtab_raw[n].e_value);
 		in->scnum = get_s16(symtab_raw[n].e_scnum);
-		if (in->scnum < -2 || in->scnum > nsections) {
+		if (in->scnum < -2 || in->scnum > (int)nsections) {
 			fprintf(stderr,
 				"symtab entry #%u: scnum out of range\n", n);
 			exit(1);