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

Back to archive index

null+****@clear***** null+****@clear*****
2012年 5月 1日 (火) 14:26:57 JST


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

  New Revision: 74bdbe71ec83e5495fdac675f284feb671a5cfea

  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);




Groonga-mysql-commit メーリングリストの案内
Back to archive index