trunk: changeset 53

Sat, 05 Apr 2003 22:21:24 +0200

author
tuomov
date
Sat, 05 Apr 2003 22:21:24 +0200
changeset 49
755bdb97a607
parent 48
f66f0f27beae
child 50
855953c2f413

trunk: changeset 53
StringIntMap fixed (not)

map.c file | annotate | diff | comparison | revisions
--- a/map.c	Wed Apr 02 22:05:14 2003 +0200
+++ b/map.c	Sat Apr 05 22:21:24 2003 +0200
@@ -15,7 +15,7 @@
 	
 	for(i=0; map[i].string!=NULL; i++){
 		if(strcmp(str, map[i].string)==0)
-			return i;
+			return map[i].value;
 	}
 	
 	return -1;

mercurial