Navigation Menu

Skip to content

Commit

Permalink
Use static_cast
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 9, 2012
1 parent e6bd47f commit 3abf104
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ha_mroonga.cc
Expand Up @@ -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);
}
Expand Down

0 comments on commit 3abf104

Please sign in to comment.