summaryrefslogtreecommitdiff
path: root/src/basic/parse-util.h
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2016-04-29 11:45:07 +0200
committerSven Eden <yamakuzure@gmx.net>2017-06-16 10:12:58 +0200
commit04d125031ef309f6a1cae8b7f79f2d08cf144ca2 (patch)
tree4c341480bc2442020e8c304ed433d38e906a9493 /src/basic/parse-util.h
parent37a18e3c54f5c49be532a1dbd21a0af6fd4fd27c (diff)
parse-util: fix conversion from size_t on s390 (#3147)
On s390 size_t is an unsigned long, nor an unsigned int. They both are of the same size and can be cast to each other safely, but the compiler still seems unhappy about incompatible pointers. Fixes: 7c2da2ca8
Diffstat (limited to 'src/basic/parse-util.h')
-rw-r--r--src/basic/parse-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/basic/parse-util.h b/src/basic/parse-util.h
index 9b1aebdb5..ea70c5e1e 100644
--- a/src/basic/parse-util.h
+++ b/src/basic/parse-util.h
@@ -96,7 +96,7 @@ static inline int safe_atoli(const char *s, long int *ret_u) {
#if SIZE_MAX == UINT_MAX
static inline int safe_atozu(const char *s, size_t *ret_u) {
assert_cc(sizeof(size_t) == sizeof(unsigned));
- return safe_atou(s, ret_u);
+ return safe_atou(s, (unsigned *) ret_u);
}
#else
static inline int safe_atozu(const char *s, size_t *ret_u) {