From b01fb5c34046e6595d1a02e099fd70aab3ed52ed Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 1 Dec 2001 23:53:03 +0000 Subject: [PATCH] fixed VC++ compilation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12810 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/longlong.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/include/wx/longlong.h b/include/wx/longlong.h index 3a6f3f6f90..b0789390d6 100644 --- a/include/wx/longlong.h +++ b/include/wx/longlong.h @@ -909,8 +909,15 @@ inline bool operator>=(long l, const wxLongLong& ll) { return ll > l; } inline bool operator==(long l, const wxLongLong& ll) { return ll > l; } inline bool operator!=(long l, const wxLongLong& ll) { return ll > l; } -inline wxLongLong operator+(long l, const wxLongLong& ll) { return ll + l; } -inline wxLongLong operator-(long l, const wxLongLong& ll) { return ll - l; } +inline wxLongLong operator+(long l, const wxLongLong& ll) +{ + return ll + wxLongLong(l); +} + +inline wxLongLong operator-(long l, const wxLongLong& ll) +{ + return ll - wxLongLong(l); +} inline bool operator<(unsigned long l, const wxULongLong& ll) { return ll > l; } inline bool operator>(unsigned long l, const wxULongLong& ll) { return ll > l; } -- 2.50.0