Gary Bilkus <m...@gary.bilkus.com> writes: > Given that time_t is always a signed integer value, wouldn't > > return (double)(time1-time2) > > just work anyway, at least as far as a patch for mingw is concerned?
Is it always a signed integer? Can't it sometimes be unsigned? This is the "year 2037" problem, where 32-bit unsigned time rolls over. However there is also a "Year 2106" problem, which is where 32-bit unsigned time rolls over. I think there *are* some systems where it's unsigned, but still 32 bits. Or at least there are apps where that is the case. -derek -- Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory Member, MIT Student Information Processing Board (SIPB) URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH warl...@mit.edu PGP key available _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel