[Groonga-mysql-commit] mroonga/mroonga [fix-for-visual-studio] Use C style cast for using the same source for Linux and Mac OS X :<

Back to archive index

Kouhei Sutou null+****@clear*****
Thu Oct 4 10:43:10 JST 2012


Kouhei Sutou	2012-05-01 14:26:57 +0900 (Tue, 01 May 2012)

  New Revision: 74bdbe71ec83e5495fdac675f284feb671a5cfea
  https://github.com/mroonga/mroonga/commit/74bdbe71ec83e5495fdac675f284feb671a5cfea

  Merged 79e1935: Merge branch 'master' of github.com:mroonga/mroonga

  Log:
    Use C style cast for using the same source for Linux and Mac OS X :<

  Modified files:
    ha_mroonga.cpp

  Modified: ha_mroonga.cpp (+1 -1)
===================================================================
--- ha_mroonga.cpp    2012-04-29 17:01:13 +0900 (8229892)
+++ ha_mroonga.cpp    2012-05-01 14:26:57 +0900 (7e6c250)
@@ -557,7 +557,7 @@ static void mrn_logger_func(int level, const char *time, const char *title,
     pthread_mutex_lock(&mrn_log_mutex);
     fprintf(mrn_log_file, "%s|%c|%08x|%s\n", time,
             *(slev + level),
-            static_cast<uint>(static_cast<ulong>(pthread_self())),
+            static_cast<uint>((ulong)(pthread_self())),
             msg);
     fflush(mrn_log_file);
     pthread_mutex_unlock(&mrn_log_mutex);
-------------- next part --------------
HTML����������������������������...
Download 



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