null+****@clear*****
null+****@clear*****
2012年 4月 9日 (月) 16:08:38 JST
Kouhei Sutou 2012-04-09 16:08:38 +0900 (Mon, 09 Apr 2012) New Revision: 3abf104db326c7582ab9e0b89febb7d71e9106e1 Log: Use static_cast Modified files: ha_mroonga.cc Modified: ha_mroonga.cc (+3 -1) =================================================================== --- ha_mroonga.cc 2012-04-09 15:35:54 +0900 (66394ae) +++ ha_mroonga.cc 2012-04-09 16:08:38 +0900 (4bdcd1c) @@ -580,7 +580,9 @@ static void mrn_logger_func(int level, const char *time, const char *title, if (mrn_log_file_opened) { pthread_mutex_lock(&mrn_log_mutex); fprintf(mrn_log_file, "%s|%c|%08x|%s\n", time, - *(slev + level), (uint)(ulong)pthread_self(), msg); + *(slev + level), + static_cast<uint>(static_cast<ulong>(pthread_self())), + msg); fflush(mrn_log_file); pthread_mutex_unlock(&mrn_log_mutex); }