summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-01-08 15:26:33 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-01-08 15:26:33 (GMT)
commitb3906ef2dae3d9179c3eb50939e1c666324ab52b (patch)
treea5ce7d585c9718cca0e946a9aaf8930ef8acdd85 /src
parent3932c8d54a682050bb6143a81d98dd1c60884747 (diff)
downloadhdf5-b3906ef2dae3d9179c3eb50939e1c666324ab52b.zip
hdf5-b3906ef2dae3d9179c3eb50939e1c666324ab52b.tar.gz
hdf5-b3906ef2dae3d9179c3eb50939e1c666324ab52b.tar.bz2
[svn-r9781] Purpose:
Bug fix Description: Print the thread ID in a little more portable of a fashion, disallowing negative thread IDs. Platforms tested: Linux 2.4 (heping) w/threadsafe Too Minor to require h5committest
Diffstat (limited to 'src')
-rw-r--r--src/H5E.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5E.c b/src/H5E.c
index d0c5ea7..8811693 100644
--- a/src/H5E.c
+++ b/src/H5E.c
@@ -472,7 +472,7 @@ H5Eprint(FILE *stream)
fprintf (stream, "thread 0.");
}
#elif defined(H5_HAVE_THREADSAFE)
- fprintf (stream, "thread %d.", (int)pthread_self());
+ fprintf (stream, "thread %lu.", (unsigned long)pthread_self());
#else
fprintf (stream, "thread 0.");
#endif