Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/gen toolize
details: https://anonhg.NetBSD.org/src/rev/7693f6b10335
branches: trunk
changeset: 332605:7693f6b10335
user: christos <christos%NetBSD.org@localhost>
date: Tue Sep 30 17:59:06 2014 +0000
description:
toolize
diffstat:
lib/libc/gen/dehumanize_number.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diffs (34 lines):
diff -r caa95a0480d9 -r 7693f6b10335 lib/libc/gen/dehumanize_number.c
--- a/lib/libc/gen/dehumanize_number.c Tue Sep 30 15:25:18 2014 +0000
+++ b/lib/libc/gen/dehumanize_number.c Tue Sep 30 17:59:06 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dehumanize_number.c,v 1.4 2012/03/13 21:13:34 christos Exp $ */
+/* $NetBSD: dehumanize_number.c,v 1.5 2014/09/30 17:59:06 christos Exp $ */
/*
* Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
@@ -29,9 +29,13 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*/
+#ifdef HAVE_NBTOOLS_CONFIG_H
+#include "nbtools_config.h"
+#endif /* HAVE_NBTOOLS_CONFIG_H */
+
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: dehumanize_number.c,v 1.4 2012/03/13 21:13:34 christos Exp $");
+__RCSID("$NetBSD: dehumanize_number.c,v 1.5 2014/09/30 17:59:06 christos Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -111,7 +115,9 @@
return -1; /* Out of range. */
}
tmp *= multiplier;
+#ifdef _DIAGASSERT
_DIAGASSERT(__type_fit(int64_t, tmp));
+#endif
*size = (int64_t)tmp;
return 0;
Home |
Main Index |
Thread Index |
Old Index