Please sign in to comment.
MB-7297 Use size_t for python wrapping for 32-bit support
The couchstore/couch_db.h uses size_t for several struct fields, and size_t can be either 32-bits or 64-bits, depending on platform. So, instead of c_ulonglong, use c_size_t for those fields. Here, we assume sizeof(off_t) == sizeof(size_t). Not a 100% bulletproof assumption, but it seems to work on tests. Additionally, use uint64_t for the couchstore_open_db() flags parameter rather than the platform-specific int. Change-Id: I36898d0260d44d57fe16ff7e16c7759c4686b4e4 Reviewed-on: http://review.couchbase.org/22969 Tested-by: Steve Yen <email@example.com> Reviewed-by: Aaron Miller <firstname.lastname@example.org> Tested-by: Aaron Miller <email@example.com>
- Loading branch information...