[Groonga-mysql-commit] mroonga/mroonga [master] Fix inverted variable name

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 25 00:18:07 JST 2012


Kouhei Sutou	2012-10-25 00:18:07 +0900 (Thu, 25 Oct 2012)

  New Revision: 368a97e6695af2b189182ce9ccb7fd174b8dddf7
  https://github.com/mroonga/mroonga/commit/368a97e6695af2b189182ce9ccb7fd174b8dddf7

  Log:
    Fix inverted variable name

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+2 -2)
===================================================================
--- ha_mroonga.cpp    2012-10-25 00:15:25 +0900 (1d0edc0)
+++ ha_mroonga.cpp    2012-10-25 00:18:07 +0900 (b97c6e4)
@@ -1507,12 +1507,12 @@ static int mrn_set_geometry(grn_ctx *ctx, grn_obj *buf,
 static long long int mrn_tm_to_grn_time(struct tm *time, int usec)
 {
   MRN_DBUG_ENTER_FUNCTION();
-  bool before_epoch_time =
+  bool after_epoch_time =
     (time->tm_year >= (UNIX_EPOCH_TIME_YEAR - TM_YEAR_BASE));
   long long int grn_time;
   long long int sec = mktime(time);
   bool failed = (sec == -1);
-  bool overflowed = (before_epoch_time && sec < 0);
+  bool overflowed = (after_epoch_time && sec < 0);
   if (failed || overflowed) {
     grn_time = 0;
   } else {
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-mysql-commit mailing list
Back to archive index