diff options
Diffstat (limited to 'basic/source/runtime/methods.cxx')
-rw-r--r-- | basic/source/runtime/methods.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/runtime/methods.cxx b/basic/source/runtime/methods.cxx index e23536751753..67c0534f6821 100644 --- a/basic/source/runtime/methods.cxx +++ b/basic/source/runtime/methods.cxx @@ -4834,12 +4834,12 @@ static long GetDayDiff( const Date& rDate ) long nDiffDays; if ( aRefDate > rDate ) { - nDiffDays = (long)(aRefDate - rDate); + nDiffDays = aRefDate - rDate; nDiffDays *= -1; } else { - nDiffDays = (long)(rDate - aRefDate); + nDiffDays = rDate - aRefDate; } nDiffDays += 2; // adjustment VisualBasic: 1.Jan.1900 == 2 return nDiffDays; |