summaryrefslogtreecommitdiff
path: root/usr.bin/m4/tokenizer.l
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2006-01-20 23:10:20 +0000
committerMarc Espie <espie@cvs.openbsd.org>2006-01-20 23:10:20 +0000
commitbb73845798cff57670d538da76e8d33d95a83c96 (patch)
tree9e05f9d8f0f4336731a34377fb78a85d6a5d7312 /usr.bin/m4/tokenizer.l
parentf0d48f87e2fca677ee8cf862dadddda3c3dd47ee (diff)
use stdint.h where appropriate. okay millert@
Diffstat (limited to 'usr.bin/m4/tokenizer.l')
-rw-r--r--usr.bin/m4/tokenizer.l6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/m4/tokenizer.l b/usr.bin/m4/tokenizer.l
index 7188a8cfc35..895ea5ca887 100644
--- a/usr.bin/m4/tokenizer.l
+++ b/usr.bin/m4/tokenizer.l
@@ -1,5 +1,5 @@
%{
-/* $OpenBSD: tokenizer.l,v 1.2 2004/05/12 21:28:35 espie Exp $ */
+/* $OpenBSD: tokenizer.l,v 1.3 2006/01/20 23:10:19 espie Exp $ */
/*
* Copyright (c) 2004 Marc Espie <espie@cvs.openbsd.org>
*
@@ -18,7 +18,7 @@
#include "parser.h"
#include <stdlib.h>
#include <errno.h>
-#include <sys/types.h>
+#include <stdint.h>
#include <limits.h>
extern int32_t yylval;
@@ -54,7 +54,7 @@ number()
errno = 0;
l = strtol(yytext, NULL, 0);
if (((l == LONG_MAX || l == LONG_MIN) && errno == ERANGE) ||
- l > 0x7fffffff || l < (-0x7fffffff - 1)) {
+ l > INT32_MAX || l < INT32_MIN) {
fprintf(stderr, "m4: numeric overflow in expr: %s\n", yytext);
}
return l;