Module Name:    src
Committed By:   christos
Date:           Tue Sep 30 17:59:06 UTC 2014

Modified Files:
        src/lib/libc/gen: dehumanize_number.c

Log Message:
toolize


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/lib/libc/gen/dehumanize_number.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/gen/dehumanize_number.c
diff -u src/lib/libc/gen/dehumanize_number.c:1.4 src/lib/libc/gen/dehumanize_number.c:1.5
--- src/lib/libc/gen/dehumanize_number.c:1.4	Tue Mar 13 17:13:34 2012
+++ src/lib/libc/gen/dehumanize_number.c	Tue Sep 30 13:59:06 2014
@@ -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 @@ dehumanize_number(const char *str, int64
 		return -1; /* Out of range. */
 	}
 	tmp *= multiplier;
+#ifdef _DIAGASSERT
 	_DIAGASSERT(__type_fit(int64_t, tmp));
+#endif
 	*size = (int64_t)tmp;
 
 	return 0;

Reply via email to