Commits

Ronald Oussoren committed ae43efe

Fix endianness bug

  • Participants
  • Parent commits b23b5b2
  • Branches pyobjc-ancient

Comments (0)

Files changed (1)

pyobjc-framework-WebKit/Examples/PyDocURLProtocol/PyDocEvents.py

 import objc
 
 def fourCharToInt(code):
-    return struct.unpack('l', code)[0]
+    return struct.unpack('>l', code)[0]
 
 class PyDocEventHandler (NSObject):
     webview = objc.IBOutlet('webview')