summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'contrib')
-rw-r--r--contrib/pg_upgrade/util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/pg_upgrade/util.c b/contrib/pg_upgrade/util.c
index 3f3a4c700d0..edd3a45bc9f 100644
--- a/contrib/pg_upgrade/util.c
+++ b/contrib/pg_upgrade/util.c
@@ -269,5 +269,5 @@ getErrorText(int errNum)
unsigned int
str2uint(const char *str)
{
- return strtol(str, NULL, 10);
+ return strtoul(str, NULL, 10);
}