[lasem] [itex2mml] Fix compilation warnings.



commit 56239ffeebf9771ae685736fec013dc9c0280575
Author: Emmanuel Pacaud <emmanuel gnome org>
Date:   Mon Oct 26 16:55:05 2009 +0100

    [itex2mml] Fix compilation warnings.

 itex2mml/itex2MML.y |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/itex2mml/itex2MML.y b/itex2mml/itex2MML.y
index a42d7d8..378077a 100644
--- a/itex2mml/itex2MML.y
+++ b/itex2mml/itex2MML.y
@@ -2,6 +2,8 @@
  *   itex2MML.y last modified 10/11/2009
  */
 
+%expect 218
+
 %{
 #include <stdio.h>
 #include <string.h>
@@ -264,7 +266,7 @@
    {
 #define ENTITY_LENGTH 10
      char * entity = (char *) malloc(ENTITY_LENGTH);
-     sprintf(entity, "&#x%05x;", code);
+     sprintf(entity, "&#x%05lx;", code);
      return entity;
    }
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]