Module Name: src
Committed By: christos
Date: Wed Oct 29 19:10:18 UTC 2014
Modified Files:
src/usr.bin/config: scan.l
Log Message:
cast to signed, since that's all we have.
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/usr.bin/config/scan.l
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/config/scan.l
diff -u src/usr.bin/config/scan.l:1.19 src/usr.bin/config/scan.l:1.20
--- src/usr.bin/config/scan.l:1.19 Wed Oct 29 13:14:50 2014
+++ src/usr.bin/config/scan.l Wed Oct 29 15:10:18 2014
@@ -1,5 +1,5 @@
%{
-/* $NetBSD: scan.l,v 1.19 2014/10/29 17:14:50 christos Exp $ */
+/* $NetBSD: scan.l,v 1.20 2014/10/29 19:10:18 christos Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: scan.l,v 1.19 2014/10/29 17:14:50 christos Exp $");
+__RCSID("$NetBSD: scan.l,v 1.20 2014/10/29 19:10:18 christos Exp $");
#include <sys/param.h>
#include <errno.h>
@@ -338,7 +338,7 @@ package[ \t]+{FILENAME}{RESTOFLINE} {
}
0[xX][0-9a-fA-F]+ {
yylval.num.fmt = 16;
- yylval.num.val = strtoull(yytext + 2, NULL, 16);
+ yylval.num.val = (long long)strtoull(yytext + 2, NULL, 16);
return NUMBER;
}
[1-9][0-9]* {