[Skencil-commits] r694 - in skencil/branches/skencil-0.6: . Pax

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue May 1 23:59:15 CEST 2007


Author: bh
Date: 2007-05-01 23:59:15 +0200 (Tue, 01 May 2007)
New Revision: 694

Modified:
   skencil/branches/skencil-0.6/ChangeLog
   skencil/branches/skencil-0.6/Pax/fontobject.c
Log:
* Pax/fontobject.c (GetAttr): Do not assume that sizeof(int) ==
sizeof(long).  Fixes a problem on 64 bit systems.


Modified: skencil/branches/skencil-0.6/ChangeLog
===================================================================
--- skencil/branches/skencil-0.6/ChangeLog	2007-05-01 18:33:52 UTC (rev 693)
+++ skencil/branches/skencil-0.6/ChangeLog	2007-05-01 21:59:15 UTC (rev 694)
@@ -1,5 +1,10 @@
 2007-05-01  Bernhard Herzog  <bh at intevation.de>
 
+	* Pax/fontobject.c (GetAttr): Do not assume that sizeof(int) ==
+	sizeof(long).  Fixes a problem on 64 bit systems.
+
+2007-05-01  Bernhard Herzog  <bh at intevation.de>
+
 	* Sketch/UI/mainwindow.py (SketchMainWindow.AboutBox): Update
 	copyright dates in about message
 

Modified: skencil/branches/skencil-0.6/Pax/fontobject.c
===================================================================
--- skencil/branches/skencil-0.6/Pax/fontobject.c	2007-05-01 18:33:52 UTC (rev 693)
+++ skencil/branches/skencil-0.6/Pax/fontobject.c	2007-05-01 21:59:15 UTC (rev 694)
@@ -259,7 +259,7 @@
 			"non-int attr not yet supported");
 	return NULL;
     }
-    return PyInt_FromLong(*(long *)((char *)(self->font_struct) + p->offset));
+    return PyInt_FromLong(*(int *)((char *)(self->font_struct) + p->offset));
 }
 
 static void



More information about the Skencil-commits mailing list