Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 9a0d8da00ed61d00eb252338f312c4d7 > files > 4

xalan-c-1.10-5mdv2009.1.src.rpm

--- xml-xalan/c/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp.orig	2006-08-15 11:13:52.000000000 -0300
+++ xml-xalan/c/src/xalanc/PlatformSupport/XalanNLSMessageLoader.cpp	2006-08-15 11:19:42.000000000 -0300
@@ -42,7 +42,7 @@
 
 XalanNLSMessageLoader::~XalanNLSMessageLoader()
 {
-	if ((int)m_catalogHandle != -1)
+	if ((long int)m_catalogHandle != -1)
 	{
 		catclose(m_catalogHandle);
 	}
@@ -75,7 +75,7 @@
     */
     m_catalogHandle = catopen(fileName, 0);
 
-    if ((int)m_catalogHandle == -1)
+    if ((long int)m_catalogHandle == -1)
     {
         // Probably have to call panic here
         // the user will get an error with retrieving messages
@@ -95,7 +95,7 @@
     	return bRetValue;
     }
 
-    if ((int)m_catalogHandle == -1)
+    if ((long int)m_catalogHandle == -1)
     {
     	// for transcoding to Unicode
     	const XalanDOMString	errorMsg("Message can't be retrieved: the message catalog is not open.", m_memoryManager );