From fcaeda7db3b9e76d3f95fe1d81b6b70f84a1e00f Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Thu, 25 Mar 2010 12:53:09 +0000 Subject: [PATCH] 2010-03-25 13:52 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/common/expropt2.c ! fixed stupid c&p typo in timestamp optimization, many thanks to Mindaugas for the information about the bug. --- harbour/ChangeLog | 5 +++++ harbour/src/common/expropt2.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index ac508a4428..c61b3caa03 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,11 @@ past entries belonging to author(s): Viktor Szakats. */ +2010-03-25 13:52 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/src/common/expropt2.c + ! fixed stupid c&p typo in timestamp optimization, + many thanks to Mindaugas for the information about the bug. + 2010-03-25 12:20 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbsetup.h + use FORCEINLINE defined in compiler header files diff --git a/harbour/src/common/expropt2.c b/harbour/src/common/expropt2.c index 8666c02c6e..4eb6f93605 100644 --- a/harbour/src/common/expropt2.c +++ b/harbour/src/common/expropt2.c @@ -445,8 +445,8 @@ static void hb_compExprReduceTimeStampPut( HB_EXPR_PTR pExpr, long lJulian, long pExpr->value.asDate.lDate = lJulian; pExpr->value.asDate.lTime = lMilliSec; - pExpr->ExprType = HB_ET_DATE; - pExpr->ValType = HB_EV_DATE; + pExpr->ExprType = HB_ET_TIMESTAMP; + pExpr->ValType = HB_EV_TIMESTAMP; } static void hb_compExprReduceTimeStampAdd( HB_EXPR_PTR pExpr, HB_EXPR_PTR pTimeStamp, double dValue )