Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/config cast to signed, since that's all we have.



details:   https://anonhg.NetBSD.org/src/rev/736b8ed64f34
branches:  trunk
changeset: 333339:736b8ed64f34
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Oct 29 19:10:18 2014 +0000

description:
cast to signed, since that's all we have.

diffstat:

 usr.bin/config/scan.l |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (28 lines):

diff -r 325eabdf36cc -r 736b8ed64f34 usr.bin/config/scan.l
--- a/usr.bin/config/scan.l     Wed Oct 29 19:08:51 2014 +0000
+++ b/usr.bin/config/scan.l     Wed Oct 29 19:10:18 2014 +0000
@@ -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 @@
        }
 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]* {



Home | Main Index | Thread Index | Old Index