After the comments (back in april, sorry) I think this is the optimal fix that Dylan Shell was trying to get to, thanks Bryan Kadzban for the idea

Please correct me if this is not right


SVN revision: 18718
This commit is contained in:
handyande 2005-11-29 23:06:59 +00:00 committed by handyande
parent 3e30a7b8e5
commit fdda70e1b3
1 changed files with 1 additions and 1 deletions

View File

@ -503,7 +503,7 @@ ecore_config_typed_val(Ecore_Config_Prop * e, const void *val, int type)
{
if (((char *)val)[0] == '#')
{
if ((v = strtol(&((char *)val)[1], &l, 16)) < 0)
if ((v = (long) strtoul(&((char *)val)[1], &l, 16)) < 0)
{
v = 0;
E(0,