label: convert to int first (avoid compiler warning)

This commit is contained in:
Daniel Kolesa 2015-07-29 15:33:33 +01:00
parent df1b9b8455
commit 4674aa3a7c
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ _get_value_in_key_string(const char *oldstring, const char *key, char **value)
if ((!endtag) || (*endtag != '='))
return -1;
firstindex = abs(oldstring - curlocater);
firstindex = abs((int)(oldstring - curlocater));
firstindex += key_len + 1; // strlen("key") + strlen("=")
*value = (char *)oldstring + firstindex;