]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/longlong.h
Warning fix for wxOS2 night build.
[wxWidgets.git] / include / wx / longlong.h
index 69b6c4ca477154ab70877313b1b783fd9661a3bd..5ceca3c77b012523757b8a30bd4183bd1d1ba0f7 100644 (file)
@@ -129,11 +129,15 @@ public:
 
     // assignment operators
         // from native 64 bit integer
+#ifndef wxLongLongIsLong
     wxLongLongNative& operator=(wxLongLong_t ll)
         { m_ll = ll; return *this; }
     wxLongLongNative& operator=(wxULongLong_t ll)
         { m_ll = ll; return *this; }
+#endif // !wxLongLongNative
     wxLongLongNative& operator=(const wxULongLongNative &ll);
+    wxLongLongNative& operator=(int l)
+        { m_ll = l; return *this; }
     wxLongLongNative& operator=(long l)
         { m_ll = l; return *this; }
     wxLongLongNative& operator=(unsigned long l)
@@ -361,10 +365,14 @@ public:
 
     // assignment operators
         // from native 64 bit integer
+#ifndef wxLongLongIsLong
     wxULongLongNative& operator=(wxULongLong_t ll)
         { m_ll = ll; return *this; }
     wxULongLongNative& operator=(wxLongLong_t ll)
         { m_ll = ll; return *this; }
+#endif // !wxLongLongNative
+    wxULongLongNative& operator=(int l)
+        { m_ll = l; return *this; }
     wxULongLongNative& operator=(long l)
         { m_ll = l; return *this; }
     wxULongLongNative& operator=(unsigned long l)
@@ -606,6 +614,12 @@ public:
 
         return *this;
     }
+        // from int
+    wxLongLongWx& operator=(int l)
+    {
+        return operator=((long)l);
+    }
+
     wxLongLongWx& operator=(unsigned long l)
     {
         m_lo = l;