Shouldn't that be sqlite3_bind_double? The variable one_week is
declared as double, and I'm pretty sure that seconds-since-1970
intervals are soon going to overflow a (signed) 32-bit int, if they
haven't already.
time_t (seconds since 1970, signed 32-bit integer) doesn't overflow
until early 2038 - at which point there is mass panic, riots in the
streets, and blood raining from the skies, because a ton of protocols
have the 32-bit width baked into them.
But it's safe for the next 30 years or so. Hopefully we'll all be
using 64-bit systems by then.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com