From df91b4d0598fcd5b502dc8e04aaaf8f15f105334 Mon Sep 17 00:00:00 2001 From: Eric Le Lay Date: Sun, 30 May 2010 13:29:56 +0200 Subject: [PATCH] Mac OS X: Fix crash on 64-bit Snow Leopard (bug 1034) I incorrectly used "unsigned long" as format to pack a 4 char code to an integer, while I should have used "unsigned int" because on 64 bits Snow Leopard, unsigned long is 8 bytes long, and then unpack fails. --- src/gpodder/gpodderosx.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpodder/gpodderosx.py b/src/gpodder/gpodderosx.py index de3e43f8..941387c6 100644 --- a/src/gpodder/gpodderosx.py +++ b/src/gpodder/gpodderosx.py @@ -24,7 +24,7 @@ from gpodder import util def aeKeyword(fourCharCode): """transform four character code into a long""" - return struct.unpack('L', fourCharCode)[0] + return struct.unpack('I', fourCharCode)[0] # for the kCoreEventClass, kAEOpenDocuments, ... constants -- 2.11.4.GIT