From 81a041d4cbc4aefae5d5e8c6f753fd68af62c27c Mon Sep 17 00:00:00 2001 From: Sebastian Spaeth Date: Wed, 24 Mar 2010 11:51:12 +0100 Subject: [PATCH] try c_long rather c_int64 for time_t --- cnotmuch/message.py | 4 ++-- cnotmuch/thread.py | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cnotmuch/message.py b/cnotmuch/message.py index e8b24474..3ff3e7f1 100644 --- a/cnotmuch/message.py +++ b/cnotmuch/message.py @@ -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 @@ -183,7 +183,7 @@ class Message(object): _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 diff --git a/cnotmuch/thread.py b/cnotmuch/thread.py index 97b58b69..5a2505c5 100644 --- a/cnotmuch/thread.py +++ b/cnotmuch/thread.py @@ -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 @@ -150,10 +150,10 @@ class Thread(object): _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.restype = c_int64 + _get_oldest_date.restype = c_long """notmuch_thread_get_tags""" _get_tags = nmlib.notmuch_thread_get_tags -- 2.26.2