r16370 - gnucash/trunk/lib/libqof/qof - Bug#361604: patch from Mike Alexander <mta umich edu> to fix datatype for gnc-date.h to allow ranging negative, which is important in a few places.

Josh Sled jsled at cvs.gnucash.org
Sun Jul 29 12:00:07 EDT 2007


Author: jsled
Date: 2007-07-29 12:00:06 -0400 (Sun, 29 Jul 2007)
New Revision: 16370
Trac: http://svn.gnucash.org/trac/changeset/16370

Modified:
   gnucash/trunk/lib/libqof/qof/gnc-date.h
Log:
Bug#361604: patch from Mike Alexander <mta umich edu> to fix datatype for gnc-date.h to allow ranging negative, which is important in a few places.


Modified: gnucash/trunk/lib/libqof/qof/gnc-date.h
===================================================================
--- gnucash/trunk/lib/libqof/qof/gnc-date.h	2007-07-28 21:53:27 UTC (rev 16369)
+++ gnucash/trunk/lib/libqof/qof/gnc-date.h	2007-07-29 16:00:06 UTC (rev 16370)
@@ -148,13 +148,14 @@
  * unsigned int to store the seconds.  This should adequately cover
  * dates in the distant future as well as the distant past, as long as
  * they're not more than a couple dozen times the age of the universe.
- * Values of this type can range from 0 to 18,446,744,073,709,551,615.
+ * Values of this type can range from -9,223,372,036,854,775,808 to
+ * 9,223,372,036,854,775,807.
  */
 
 #ifndef SWIG   /* swig 1.1p5 can't hack the long long type */
 struct timespec64
 {
-   guint64 tv_sec;     
+   gint64 tv_sec;     
    glong tv_nsec;
 };
 #endif /* SWIG */
@@ -164,7 +165,8 @@
  * store the seconds.  This should adequately cover dates in the
  * distant future as well as the distant past, as long as they're not
  * more than a couple dozen times the age of the universe
- * Values of this type can range from 0 to 18,446,744,073,709,551,615.
+ * Values of this type can range from -9,223,372,036,854,775,808 to
+ * 9,223,372,036,854,775,807.
  */
 typedef struct timespec64 Timespec;
 



More information about the gnucash-changes mailing list