Module Name:    src
Committed By:   martin
Date:           Thu Feb 14 21:07:26 UTC 2013

Modified Files:
        src/external/public-domain/sqlite/bin: Makefile
        src/external/public-domain/sqlite/dist: sqlite3.c

Log Message:
Backout previous


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/public-domain/sqlite/bin/Makefile
cvs rdiff -u -r1.7 -r1.8 src/external/public-domain/sqlite/dist/sqlite3.c

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

Modified files:

Index: src/external/public-domain/sqlite/bin/Makefile
diff -u src/external/public-domain/sqlite/bin/Makefile:1.4 src/external/public-domain/sqlite/bin/Makefile:1.5
--- src/external/public-domain/sqlite/bin/Makefile:1.4	Thu Feb 14 17:12:23 2013
+++ src/external/public-domain/sqlite/bin/Makefile	Thu Feb 14 21:07:25 2013
@@ -1,11 +1,11 @@
-# $NetBSD: Makefile,v 1.4 2013/02/14 17:12:23 martin Exp $
+# $NetBSD: Makefile,v 1.5 2013/02/14 21:07:25 martin Exp $
 
 PROG=		sqlite3
 
 SRCS=		shell.c
 
 DPADD+=		${LIBSQLITE3} ${LIBEDIT} ${LIBTERIMINFO}
-LDADD+=		-lsqlite3 -ledit -lterminfo -lm
+LDADD+=		-lsqlite3 -ledit -lterminfo
 
 BINDIR=		/usr/bin
 

Index: src/external/public-domain/sqlite/dist/sqlite3.c
diff -u src/external/public-domain/sqlite/dist/sqlite3.c:1.7 src/external/public-domain/sqlite/dist/sqlite3.c:1.8
--- src/external/public-domain/sqlite/dist/sqlite3.c:1.7	Thu Feb 14 17:12:23 2013
+++ src/external/public-domain/sqlite/dist/sqlite3.c	Thu Feb 14 21:07:25 2013
@@ -19422,14 +19422,11 @@ static const et_info fmtinfo[] = {
 ** 16 (the number of significant digits in a 64-bit float) '0' is
 ** always returned.
 */
-#ifdef SQLITE_HAVE_ISNAN
-# include <math.h>
-#endif
 static char et_getdigit(LONGDOUBLE_TYPE *val, int *cnt){
   int digit;
   LONGDOUBLE_TYPE d;
   if( (*cnt)++ >= 16 ) return '0';
-  digit = (int)floor(*val);
+  digit = (int)*val;
   d = digit;
   digit += '0';
   *val = (*val - d)*10.0;
@@ -21001,6 +20998,9 @@ SQLITE_PRIVATE void sqlite3UtfSelfTest(v
 **
 */
 /* #include <stdarg.h> */
+#ifdef SQLITE_HAVE_ISNAN
+# include <math.h>
+#endif
 
 /*
 ** Routine needed to support the testcase() macro.
@@ -132872,7 +132872,7 @@ SQLITE_API int sqlite3_extension_init(
 **    May you share freely, never taking more than you give.
 **
 *************************************************************************
-** $Id: sqlite3.c,v 1.7 2013/02/14 17:12:23 martin Exp $
+** $Id: sqlite3.c,v 1.8 2013/02/14 21:07:25 martin Exp $
 **
 ** This file implements an integration between the ICU library 
 ** ("International Components for Unicode", an open-source library 

Reply via email to