forked from Lainports/freebsd-ports
- Update PORTVERSION and distinfo checksum (2.5.0) - Update pkg-plist - Un-conditionalize GNUTLS. It is now mandatory [1] - Switch to GITHUB for DISTFILES, tarball doesn't include tests - Use USES=compiler for determing which C++11 compiler to use, deprecate OSVERSION < 10 check accordingly. - Patch files to correct for ambiguous type signatures under LLVM, fixing build failure on 32-bit ARCH's (only i386 tested) and ISO8601 unit test failures. [3] - Add python:test for TEST_DEPENDS support [2] - Add do-test target for running the test suite - Update SHEBANG_FILES, no more .py, .rb files - Remove WRKSRC override - Add LICENSE_FILE - Sort Makefile sections Changes: [1] https://taskwarrior.org/news/news.20151021.html [2] https://svnweb.freebsd.org/changeset/ports/405075 [3] C++ fixes kindly supplied by Brendan Molloy Approved by: skreuzer (maintainer) Differential Revision: D4756
20 lines
629 B
C++
20 lines
629 B
C++
--- src/recur.cpp.orig 2015-10-21 20:50:42 UTC
|
|
+++ src/recur.cpp
|
|
@@ -241,7 +241,7 @@ ISO8601d getNextRecurrence (ISO8601d& cu
|
|
else if (dow == 6) days = 2;
|
|
else days = 1;
|
|
|
|
- return current + (days * 86400);
|
|
+ return current + (time_t)(days * 86400);
|
|
}
|
|
|
|
else if (Lexer::isDigit (period[0]) &&
|
|
@@ -377,7 +377,7 @@ ISO8601d getNextRecurrence (ISO8601d& cu
|
|
throw std::string (format (STRING_TASK_VALID_RECUR, period));
|
|
|
|
secs = (time_t) p;
|
|
- return current + secs;
|
|
+ return current + (time_t) secs;
|
|
}
|
|
|
|
////////////////////////////////////////////////////////////////////////////////
|