cleaned up some warning on the Alpha Daniel
* SAX.c xmlIO.c: cleaned up some warning on the Alpha
Daniel
diff --git a/xmlIO.c b/xmlIO.c
index db245d0..a7269c7 100644
--- a/xmlIO.c
+++ b/xmlIO.c
@@ -174,7 +174,7 @@
*/
static int
xmlFdRead (void * context, char * buffer, int len) {
- return(read((int) context, &buffer[0], len));
+ return(read((int) (long) context, &buffer[0], len));
}
/**
@@ -189,7 +189,7 @@
*/
static int
xmlFdWrite (void * context, const char * buffer, int len) {
- return(write((int) context, &buffer[0], len));
+ return(write((int) (long) context, &buffer[0], len));
}
/**
@@ -200,7 +200,7 @@
*/
static void
xmlFdClose (void * context) {
- close((int) context);
+ close((int) (long) context);
}
/**
@@ -1088,7 +1088,7 @@
ret = xmlAllocParserInputBuffer(enc);
if (ret != NULL) {
- ret->context = (void *) fd;
+ ret->context = (void *) (long) fd;
ret->readcallback = xmlFdRead;
ret->closecallback = xmlFdClose;
}
@@ -1143,7 +1143,7 @@
ret = xmlAllocOutputBuffer(encoder);
if (ret != NULL) {
- ret->context = (void *) fd;
+ ret->context = (void *) (long) fd;
ret->writecallback = xmlFdWrite;
ret->closecallback = xmlFdClose;
}