mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug Fix - #231 time_t/int collision on 32-bit systems
- Fixed bug #231 by removing the operator int () cast from the Duration class. On a 32-bit system, "time_t" may be defined as "int", in which case the int cast and time_t cast are essentially duplicates. Thanks to Pietro Cerutti, who also provided a patch.
This commit is contained in:
parent
6f9356da64
commit
8488cbd1a6
3 changed files with 1 additions and 7 deletions
1
AUTHORS
1
AUTHORS
|
@ -17,6 +17,7 @@ The following submitted code, packages or analysis, and deserve special thanks:
|
|||
P.C. Shyamshankar
|
||||
Johan Friis
|
||||
Steven de Brouwer
|
||||
Pietro Cerutti
|
||||
|
||||
Thanks to the following, who submitted detailed bug reports and excellent suggestions:
|
||||
Eugene Kramer
|
||||
|
|
|
@ -51,12 +51,6 @@ Duration::Duration (const std::string& input)
|
|||
parse (input);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Duration::operator int ()
|
||||
{
|
||||
return (int) mDays;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
Duration::operator time_t ()
|
||||
{
|
||||
|
|
|
@ -40,7 +40,6 @@ public:
|
|||
bool operator> (const Duration&);
|
||||
~Duration (); // Destructor
|
||||
|
||||
operator int ();
|
||||
operator time_t ();
|
||||
operator std::string ();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue