1
0
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:
Nick Wellnhofer
2022-09-01 07:48:38 +02:00
parent 43055d7e3d
commit a0623d9f7a
7 changed files with 24 additions and 14 deletions

View File

@ -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);