aboutsummaryrefslogtreecommitdiff
path: root/src/date.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2008-10-07 12:32:13 +0000
committerdrh <drh@noemail.net>2008-10-07 12:32:13 +0000
commitf65c76d49c12b58a37cf9ed6dc05600c7bb932d0 (patch)
tree25ec694fd4d452fa91d0580df2c61d4c771486df /src/date.c
parentc56774e234793d8e4b06e2d691960aaf8c8c3df6 (diff)
downloadsqlite-f65c76d49c12b58a37cf9ed6dc05600c7bb932d0.tar.gz
sqlite-f65c76d49c12b58a37cf9ed6dc05600c7bb932d0.zip
Do not use double unnecessarily in date+time functions. Ticket #3422. (CVS 5776)
FossilOrigin-Name: b03231323a7f06c736c38ae3c5535d2fd025583f
Diffstat (limited to 'src/date.c')
-rw-r--r--src/date.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/date.c b/src/date.c
index c93b8e14a..2c2f899ec 100644
--- a/src/date.c
+++ b/src/date.c
@@ -16,7 +16,7 @@
** sqlite3RegisterDateTimeFunctions() found at the bottom of the file.
** All other code has file scope.
**
-** $Id: date.c,v 1.90 2008/09/03 17:11:16 drh Exp $
+** $Id: date.c,v 1.91 2008/10/07 12:32:13 drh Exp $
**
** SQLite processes all times and dates as Julian Day numbers. The
** dates and times are stored as the number of days since noon
@@ -556,7 +556,7 @@ static int parseModifier(const char *zMod, DateTime *p){
}
#ifndef SQLITE_OMIT_LOCALTIME
else if( strcmp(z, "utc")==0 ){
- double c1;
+ int c1;
computeJD(p);
c1 = localtimeOffset(p);
p->iJD -= c1;