[PyObjC-svn] r1992 - trunk/pyobjc/pyobjc-framework-WebKit/Examples/PyDocURLProtocol

[email protected]
Newsgroups gmane.comp.python.pyobjc.cvs
Message-ID <[email protected]>
Author: ronaldoussoren
Date: Wed Feb 27 03:16:24 2008
New Revision: 1992

Log:
Fix endianness bug

Modified:
   trunk/pyobjc/pyobjc-framework-WebKit/Examples/PyDocURLProtocol/PyDocEvents.py

Modified: trunk/pyobjc/pyobjc-framework-WebKit/Examples/PyDocURLProtocol/PyDocEvents.py
==============================================================================
--- trunk/pyobjc/pyobjc-framework-WebKit/Examples/PyDocURLProtocol/PyDocEvents.py	(original)
+++ trunk/pyobjc/pyobjc-framework-WebKit/Examples/PyDocURLProtocol/PyDocEvents.py	Wed Feb 27 03:16:24 2008
@@ -12,7 +12,7 @@
 import objc
 
 def fourCharToInt(code):
-    return struct.unpack('l', code)[0]
+    return struct.unpack('>l', code)[0]
 
 class PyDocEventHandler (NSObject):
     webview = objc.IBOutlet('webview')

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.