W00T, finally fixed the int bug too :)

SVN revision: 9292
This commit is contained in:
handyande 2004-03-08 15:44:17 +00:00 committed by handyande
parent f968091a88
commit 0396e7e959
1 changed files with 4 additions and 1 deletions

View File

@ -306,7 +306,10 @@ int ecore_config_set_typed(Ecore_Config_Bundle *t,const char *key,void *val,int
int ecore_config_set(Ecore_Config_Bundle *t,const char *key,char *val) {
int type;
type=ecore_config_guess_type(val);
return ecore_config_set_typed(t,key,val,type); }
if (type == PT_INT)
return ecore_config_set_typed(t,key,(void*) atoi(val),type);
else
return ecore_config_set_typed(t,key,(void*) val,type); }
int ecore_config_set_as_string(const char *key,char *val) {
return ecore_config_set(__ecore_config_bundle_local,key,val); }