diff --git a/include/wx/motif/bitmap.h b/include/wx/motif/bitmap.h index 943f34cae1..fd93fc1c2e 100644 --- a/include/wx/motif/bitmap.h +++ b/include/wx/motif/bitmap.h @@ -149,7 +149,7 @@ public: wxBitmap(char **data, wxControl* control); // Load a file or resource - wxBitmap(const wxString& name, long type = wxBITMAP_TYPE_XPM); + wxBitmap(const wxString& name, int type = wxBITMAP_TYPE_XPM); // Constructor for generalised creation from data wxBitmap(void *data, long type, int width, int height, int depth = 1); diff --git a/src/motif/bitmap.cpp b/src/motif/bitmap.cpp index e5b3c2c308..9e5d80983e 100644 --- a/src/motif/bitmap.cpp +++ b/src/motif/bitmap.cpp @@ -143,7 +143,7 @@ wxBitmap::wxBitmap(void *data, long type, int width, int height, int depth) (void) Create(data, type, width, height, depth); } -wxBitmap::wxBitmap(const wxString& filename, long type) +wxBitmap::wxBitmap(const wxString& filename, int type) { LoadFile(filename, (int)type); }