зеркало из https://github.com/mozilla/pjs.git
Add in a necessary pair of parens to fix regressions caused by the original patch in bug 239291. This fixes bug 353400, bug 353401, and bug 353405. Patch by Clint Talbert <cmtalbert@myfastmail.com>, r1/r2 by dmose@mozilla.org.
This commit is contained in:
Родитель
8572bd8398
Коммит
2e572f4362
|
@ -22,6 +22,8 @@
|
|||
* Contributor(s):
|
||||
* Vladimir Vukicevic <vladimir.vukicevic@oracle.com>
|
||||
* Dan Mosedale <dan.mosedale@oracle.com>
|
||||
* Michiel van Leeuwen <mvl@exedo.nl>
|
||||
* Clint Talbert <cmtalbert@myfastmail.com>
|
||||
*
|
||||
* Alternatively, the contents of this file may be used under the terms of
|
||||
* either the GNU General Public License Version 2 or later (the "GPL"), or
|
||||
|
@ -289,7 +291,7 @@ calDateTime::SubtractDate(calIDateTime *aDate, calIDuration **aDuration)
|
|||
// for a duration, need to convert the difference in microseconds (prtime)
|
||||
// to seconds (libical), so divide by one million.
|
||||
icaldurationtype idt =
|
||||
icaldurationtype_from_int(NS_STATIC_CAST(int, mNativeTime - t2t / PR_USEC_PER_SEC));
|
||||
icaldurationtype_from_int(NS_STATIC_CAST(int, (mNativeTime - t2t) / PR_USEC_PER_SEC));
|
||||
|
||||
nsCOMPtr<calIDuration> result(do_CreateInstance("@mozilla.org/calendar/duration;1"));
|
||||
if (!result)
|
||||
|
|
Загрузка…
Ссылка в новой задаче