[xiph-commits] r10180 - trunk/oggdsf/src/lib/codecs/cmml/libCMMLParse

davidb at svn.xiph.org davidb at svn.xiph.org
Mon Oct 17 18:06:25 PDT 2005


Author: davidb
Date: 2005-10-17 18:06:24 -0700 (Mon, 17 Oct 2005)
New Revision: 10180

Modified:
   trunk/oggdsf/src/lib/codecs/cmml/libCMMLParse/xtag.c
Log:
fix error offset bugs

Modified: trunk/oggdsf/src/lib/codecs/cmml/libCMMLParse/xtag.c
===================================================================
--- trunk/oggdsf/src/lib/codecs/cmml/libCMMLParse/xtag.c	2005-10-18 00:26:57 UTC (rev 10179)
+++ trunk/oggdsf/src/lib/codecs/cmml/libCMMLParse/xtag.c	2005-10-18 01:06:24 UTC (rev 10180)
@@ -464,7 +464,7 @@
 
   if (!parser.valid) {
     xtag_free (tag);
-	*ErrorOffset = parser.start - s;	// DLB. 20/9/05
+	*ErrorOffset = (int)(parser.start - s);	// DLB. 20/9/05
     return NULL;
   }
 
@@ -472,7 +472,7 @@
 
     if (!parser.valid) {
       xtag_free (ttag);
-	  ErrorOffset = parser.start - s;	// DLB. 20/9/05
+	  *ErrorOffset = (int)(parser.start - s);	// DLB. 20/9/05
       return tag;
     }
 
@@ -491,18 +491,18 @@
 
       if (!parser.valid) {
         xtag_free (ttag);
-		ErrorOffset = parser.start - s;	// DLB. 20/9/05
+		*ErrorOffset = (int)(parser.start - s);	// DLB. 20/9/05
         return wrapper;
       }
 
       wrapper->children = xlist_append (wrapper->children, ttag);
     }
 
-	ErrorOffset = parser.start - s;	// DLB. 20/9/05
+	*ErrorOffset = (int)(parser.start - s);	// DLB. 20/9/05
     return wrapper;
   }
 
-  ErrorOffset = parser.start - s;	// DLB. 20/9/05
+  *ErrorOffset = (int)(parser.start - s);	// DLB. 20/9/05
   return tag;
 }
 



More information about the commits mailing list