Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/stdlib cast to return type
details: https://anonhg.NetBSD.org/src/rev/0eeafd7186a8
branches: trunk
changeset: 335990:0eeafd7186a8
user: christos <christos%NetBSD.org@localhost>
date: Thu Feb 05 16:01:38 2015 +0000
description:
cast to return type
diffstat:
lib/libc/stdlib/strtonum.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r a1077410d2bd -r 0eeafd7186a8 lib/libc/stdlib/strtonum.c
--- a/lib/libc/stdlib/strtonum.c Thu Feb 05 16:00:39 2015 +0000
+++ b/lib/libc/stdlib/strtonum.c Thu Feb 05 16:01:38 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: strtonum.c,v 1.2 2015/01/18 18:01:41 christos Exp $ */
+/* $NetBSD: strtonum.c,v 1.3 2015/02/05 16:01:38 christos Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -29,7 +29,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: strtonum.c,v 1.2 2015/01/18 18:01:41 christos Exp $");
+__RCSID("$NetBSD: strtonum.c,v 1.3 2015/02/05 16:01:38 christos Exp $");
#define _OPENBSD_SOURCE
#include <stdio.h>
@@ -48,7 +48,7 @@
if (errstr == NULL)
errstr = &resp;
- rv = strtoi(nptr, NULL, 0, minval, maxval, &e);
+ rv = (long long)strtoi(nptr, NULL, 0, minval, maxval, &e);
if (e == 0) {
*errstr = NULL;
Home |
Main Index |
Thread Index |
Old Index