use wxDiskspaceSize_t which is long and not wxLongLong if wxUSE_LONGLONG==0 (part of patch 1203970)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37494 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -644,7 +644,7 @@ wxChar *wxGetUserHome (const wxString& user)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
bool wxGetDiskSpace(const wxString& path, wxLongLong *pTotal, wxLongLong *pFree)
|
||||
bool wxGetDiskSpace(const wxString& path, wxDiskspaceSize_t *pTotal, wxDiskspaceSize_t *pFree)
|
||||
{
|
||||
if ( path.empty() )
|
||||
return false;
|
||||
@@ -674,9 +674,9 @@ bool wxGetDiskSpace(const wxString& path, wxLongLong *pTotal, wxLongLong *pFree)
|
||||
if ( noErr == err )
|
||||
{
|
||||
if ( pTotal )
|
||||
*pTotal = wxLongLong( totalBytes ) ;
|
||||
*pTotal = wxDiskspaceSize_t( totalBytes ) ;
|
||||
if ( pFree )
|
||||
*pFree = wxLongLong( freeBytes ) ;
|
||||
*pFree = wxDiskspaceSize_t( freeBytes ) ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user