Menu

#33 [patch] fixed bug in XmlRpcValue.cpp, function tmEq(...)

open
nobody
None
5
2009-12-07
2009-12-07
No

Hi

Patch below fixes a nasty bug in XmlRpcValue.cpp in function tmEq(...):

***************
*** 140,146 ****
// Predicate for tm equality
static bool tmEq(struct tm const& t1, struct tm const& t2) {
return t1.tm_sec == t2.tm_sec && t1.tm_min == t2.tm_min &&
! t1.tm_hour == t2.tm_hour && t1.tm_mday == t1.tm_mday &&
t1.tm_mon == t2.tm_mon && t1.tm_year == t2.tm_year;
}

--- 140,146 ----
// Predicate for tm equality
static bool tmEq(struct tm const& t1, struct tm const& t2) {
return t1.tm_sec == t2.tm_sec && t1.tm_min == t2.tm_min &&
! t1.tm_hour == t2.tm_hour && t1.tm_mday == t2.tm_mday &&
t1.tm_mon == t2.tm_mon && t1.tm_year == t2.tm_year;
}

I verified that is bug is still present in the latest version in CVS.

Cheers

--
Dominique http://dominiko.livejournal.com

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.