Navigation Menu

Skip to content

Commit

Permalink
Use C style cast for using the same source for Linux and Mac OS X :<
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed May 1, 2012
1 parent b59a5ee commit 74bdbe7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ha_mroonga.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 74bdbe7

Please sign in to comment.