]> err.no Git - sope/blobdiff - sope-xml/libxmlSAXDriver/libxmlSAXLocator.m
lF fixes
[sope] / sope-xml / libxmlSAXDriver / libxmlSAXLocator.m
index 27098a7be9449dd09fd719addac76fc2aa591e70..9765e9f137a27e75c10a8425e89482f7c34a6c06 100644 (file)
   const xmlChar *s;
   //return nil;
   s = self->getPublicId ? self->getPublicId(self->ctx) : NULL;
-  return s ? [NSString stringWithCString:s] : nil;
+  return s ? [NSString stringWithCString:(const char *)s] : nil;
 }
 
 - (NSString *)systemId {
   const xmlChar *s;
   //return nil;
   s = self->getSystemId ? self->getSystemId(self->ctx) : NULL;
-  return s ? [NSString stringWithCString:s] : nil;
+  return s ? [NSString stringWithCString:(const char *)s] : nil;
 }
 
 /* description */
 
 - (NSString *)description {
-  return [NSString stringWithFormat:@"<0x%08X[%@]: pub=%@ sys=%@ L%i C%i>",
+  return [NSString stringWithFormat:@"<0x%p[%@]: pub=%@ sys=%@ L%i C%i>",
                      self, NSStringFromClass([self class]),
                      [self publicId], [self systemId],
                      [self lineNumber], [self columnNumber]];