mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-07-31 02:43:06 +03:00
Fix various compiler warnings
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user