summaryrefslogtreecommitdiff
path: root/xsltproc/testThreads.c
diff options
context:
space:
mode:
Diffstat (limited to 'xsltproc/testThreads.c')
-rw-r--r--xsltproc/testThreads.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xsltproc/testThreads.c b/xsltproc/testThreads.c
index 7c226446..ba04c0e1 100644
--- a/xsltproc/testThreads.c
+++ b/xsltproc/testThreads.c
@@ -100,7 +100,7 @@ threadRoutine1(void *data)
xmlChar *result;
int len;
xsltStylesheetPtr cur;
- int id = (int)(unsigned long) data;
+ int id = (int) (size_t) data;
input = xmlReadMemory(doc, strlen(doc), "doc.xml", NULL, 0);
if (input == NULL) {
@@ -205,7 +205,7 @@ main(void)
for (i = 0; i < num_threads; i++) {
ret = pthread_create(&tid[i], NULL, threadRoutine1,
- (void *) (unsigned long) i);
+ (void *) (size_t) i);
if (ret != 0) {
perror("pthread_create");
exit(1);