commit 93fe40c5a74d81a87cc8df3660d3fb56b5356ded parent a467ba6a541048d53f77d7e74fd439fac6c5ed31 Author: Özgür Kesim <oec-taler@kesim.org> Date: Mon, 29 Nov 2021 10:14:23 +0100 fixed signednes issue Diffstat:
| M | src/util/extension_age_restriction.c | | | 3 | ++- |
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/util/extension_age_restriction.c b/src/util/extension_age_restriction.c @@ -86,7 +86,7 @@ TALER_parse_age_group_string (char *groups, { enum TALER_EXTENSION_ReturnValue ret = TALER_EXTENSION_ERROR_SYS; char *pos; - int prev = -1; + unsigned int prev = 0; unsigned int val; char dummy; @@ -128,6 +128,7 @@ TALER_parse_age_group_string (char *groups, } prev = val; + *pos = ':'; groups = pos + 1; }