Navigation Menu

Skip to content

Commit

Permalink
fix build failure on MacOS X.
Browse files Browse the repository at this point in the history
pthread_self() returns struct _opaque_pthread_t* not integer family type.
So don't cast it to uint.

Reported by @issm. Thanks!!!
  • Loading branch information
kou committed Jun 8, 2011
1 parent a251069 commit 72ffcb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ha_mroonga.cc
Expand Up @@ -116,7 +116,7 @@ void mrn_logger_func(int level, const char *time, const char *title,
if (mrn_logfile_opened) {
pthread_mutex_lock(&mrn_log_mutex);
fprintf(mrn_logfile, "%s|%c|%08x|%s\n", time,
*(slev + level), (uint)pthread_self(), msg);
*(slev + level), pthread_self(), msg);
fflush(mrn_logfile);
pthread_mutex_unlock(&mrn_log_mutex);
}
Expand Down

0 comments on commit 72ffcb3

Please sign in to comment.