X-Git-Url: http://ncurses.scripts.mit.edu/?p=ncurses.git;a=blobdiff_plain;f=ncurses%2Ftrace%2Flib_trace.c;fp=ncurses%2Ftrace%2Flib_trace.c;h=7aefe9dc1c91f599791c08944d919800ea86122b;hp=7a8e6a9e752cd1003b2458ce78abe1a85a03dcf2;hb=5e36f11feab6f790e0cc6f2c882a67b7b65e3b6b;hpb=cba932f979e14e49b63e06715e80f64d9ffe6e5e diff --git a/ncurses/trace/lib_trace.c b/ncurses/trace/lib_trace.c index 7a8e6a9e..7aefe9dc 100644 --- a/ncurses/trace/lib_trace.c +++ b/ncurses/trace/lib_trace.c @@ -47,7 +47,7 @@ #include -MODULE_ID("$Id: lib_trace.c,v 1.77 2011/10/22 16:34:50 tom Exp $") +MODULE_ID("$Id: lib_trace.c,v 1.78 2011/12/17 18:41:48 tom Exp $") NCURSES_EXPORT_VAR(unsigned) _nc_tracing = 0; /* always define this */ @@ -185,9 +185,9 @@ _nc_va_tracef(const char *fmt, va_list ap) if ((pthread_self)) # endif #ifdef __MINGW32__ - fprintf(TraceFP, "%#lx:", (long) (void *) pthread_self().p); + fprintf(TraceFP, "%#lx:", (long) (intptr_t) pthread_self().p); #else - fprintf(TraceFP, "%#lx:", (long) (void *) pthread_self()); + fprintf(TraceFP, "%#lx:", (long) (intptr_t) pthread_self()); #endif #endif if (before || after) {