]> git.notmuchmail.org Git - notmuch/commitdiff
try c_long rather c_int64 for time_t
authorSebastian Spaeth <sebastian@sspaeth.de>
Wed, 24 Mar 2010 10:51:12 +0000 (11:51 +0100)
committerSebastian Spaeth <sebastian@sspaeth.de>
Wed, 24 Mar 2010 10:51:12 +0000 (11:51 +0100)
cnotmuch/message.py
cnotmuch/thread.py

index e8b24474c23ee24b403d4b5de7ff4750cdf74dd2..3ff3e7f158fab4c66951d1ac42c718747df026b5 100644 (file)
@@ -1,4 +1,4 @@
-from ctypes import c_char_p, c_void_p, c_int64
+from ctypes import c_char_p, c_void_p, c_long
 from datetime import date
 from cnotmuch.globals import nmlib, STATUS, NotmuchError
 from cnotmuch.tag import Tags
 from datetime import date
 from cnotmuch.globals import nmlib, STATUS, NotmuchError
 from cnotmuch.tag import Tags
@@ -183,7 +183,7 @@ class Message(object):
     _get_tags.restype = c_void_p
 
     _get_date = nmlib.notmuch_message_get_date
     _get_tags.restype = c_void_p
 
     _get_date = nmlib.notmuch_message_get_date
-    _get_date.restype = c_int64
+    _get_date.restype = c_long
 
     _get_header = nmlib.notmuch_message_get_header
     _get_header.restype = c_char_p
 
     _get_header = nmlib.notmuch_message_get_header
     _get_header.restype = c_char_p
index 97b58b69d395648bf54961bd860530357c9855c5..5a2505c5207e0f8262af78905a5aabcf538dd142 100644 (file)
@@ -1,4 +1,4 @@
-from ctypes import c_char_p, c_void_p, c_int64
+from ctypes import c_char_p, c_void_p, c_long
 from cnotmuch.globals import nmlib, STATUS, NotmuchError
 from cnotmuch.message import Messages
 from cnotmuch.tag import Tags
 from cnotmuch.globals import nmlib, STATUS, NotmuchError
 from cnotmuch.message import Messages
 from cnotmuch.tag import Tags
@@ -150,10 +150,10 @@ class Thread(object):
     _get_toplevel_messages.restype = c_void_p
 
     _get_newest_date = nmlib.notmuch_thread_get_newest_date
     _get_toplevel_messages.restype = c_void_p
 
     _get_newest_date = nmlib.notmuch_thread_get_newest_date
-    _get_newest_date.restype = c_int64
+    _get_newest_date.restype = c_long
 
     _get_oldest_date = nmlib.notmuch_thread_get_oldest_date
 
     _get_oldest_date = nmlib.notmuch_thread_get_oldest_date
-    _get_oldest_date.restype = c_int64
+    _get_oldest_date.restype = c_long
 
     """notmuch_thread_get_tags"""
     _get_tags = nmlib.notmuch_thread_get_tags
 
     """notmuch_thread_get_tags"""
     _get_tags = nmlib.notmuch_thread_get_tags