summaryrefslogtreecommitdiffstats
path: root/tools/build/src
diff options
context:
space:
mode:
Diffstat (limited to 'tools/build/src')
-rw-r--r--tools/build/src/unhex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/build/src/unhex.c b/tools/build/src/unhex.c
index 540095d6f4..f149449302 100644
--- a/tools/build/src/unhex.c
+++ b/tools/build/src/unhex.c
@@ -86,7 +86,7 @@ void error(int errn, ...);
#define ERR_ABORT (ERR_ERRNO / 4) /* error is fatal; abort */
#define ERR_MASK (ERR_ERRNO | ERR_FATAL | ERR_ABORT) /* all */
-#define stol(p) strtol(p, (char **) NULL, 0)
+#define stol(p) strtoul(p, (char **) NULL, 0)
int unhex(FILE *ifp, char *inm, FILE *ofp, char *onm);
int convert_Intel_records(FILE *ifp, char *inm, FILE *ofp, char *onm);