scc

simple c99 compiler
git clone git://git.simple-cc.org/scc
Log | Files | Refs | README | LICENSE

commit 98b20de1759ac16aab1fa05ea7c1ac369584b407
parent 5615aa3df1812d66a73f58b645f38c7cd4c40122
Author: Naveen Narayanan <zerous@simple-cc.org>
Date:   Thu, 15 Oct 2020 15:10:21 +0200

Merge branch 'master' of ssh://simple-cc.org:/home/zerous/scc into master

Diffstat:
Msrc/libmach/findsec.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libmach/findsec.c b/src/libmach/findsec.c @@ -10,7 +10,7 @@ findsec(Map *map, char *name) int i; struct mapsec *sec; - for (i = 0; i < map->sec; i++) { + for (i = 0; i < map->n; i++) { char *s = map->sec[i].name; if (s && strcmp(s, name) == 0) return i;