# HG changeset patch # User tuomov # Date 1049574084 -7200 # Node ID 755bdb97a6070333771a75f99519df026e21e859 # Parent f66f0f27beae1843ee6932b25b1439f1236c59bd trunk: changeset 53 StringIntMap fixed (not) diff -r f66f0f27beae -r 755bdb97a607 map.c --- 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;