aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgomp/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgomp/env.c b/libgomp/env.c
index 0249966..279937b 100644
--- a/libgomp/env.c
+++ b/libgomp/env.c
@@ -283,7 +283,7 @@ parse_unsigned_long_1 (const char *env, const char *val, unsigned long *pvalue,
static bool
parse_unsigned_long (const char *env, const char *val, void *const params[])
{
- unsigned upper = (unsigned long) params[2];
+ unsigned long upper = (uintptr_t) params[2];
unsigned long pvalue = 0;
bool ret = parse_unsigned_long_1 (env, val, &pvalue, (bool) params[1]);
if (!ret)