Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/config makedev returns ~uint64_t, but val is int64_t...



details:   https://anonhg.NetBSD.org/src/rev/137963f53452
branches:  trunk
changeset: 803595:137963f53452
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Nov 04 23:01:23 2014 +0000

description:
makedev returns ~uint64_t, but val is int64_t. Cast for -Wconversion.

diffstat:

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

diffs (28 lines):

diff -r ae93393f6bd5 -r 137963f53452 usr.bin/config/gram.y
--- a/usr.bin/config/gram.y     Tue Nov 04 23:00:35 2014 +0000
+++ b/usr.bin/config/gram.y     Tue Nov 04 23:01:23 2014 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: gram.y,v 1.45 2014/10/31 07:38:36 uebayasi Exp $       */
+/*     $NetBSD: gram.y,v 1.46 2014/11/04 23:01:23 joerg Exp $  */
 
 /*
  * Copyright (c) 1992, 1993
@@ -42,7 +42,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: gram.y,v 1.45 2014/10/31 07:38:36 uebayasi Exp $");
+__RCSID("$NetBSD: gram.y,v 1.46 2014/11/04 23:01:23 joerg Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -908,7 +908,7 @@
 
 /* major and minor device number */
 major_minor:
-       MAJOR NUMBER MINOR NUMBER       { $$ = makedev($2.val, $4.val); }
+       MAJOR NUMBER MINOR NUMBER       { $$ = (int64_t)makedev($2.val, $4.val); }
 ;
 
 /* filesystem type for root fs specification */



Home | Main Index | Thread Index | Old Index