Use unsigned int to avoid undefined behaviour when shifting a signed by 31 bits
This commit is contained in:
@@ -220,7 +220,7 @@ void DirBrowser::updateDirTree (const Gtk::TreeModel::iterator& iter)
|
||||
void DirBrowser::updateVolumes ()
|
||||
{
|
||||
|
||||
int nvolumes = GetLogicalDrives ();
|
||||
unsigned int nvolumes = GetLogicalDrives ();
|
||||
|
||||
if (nvolumes != volumes) {
|
||||
GThreadLock lock;
|
||||
|
@@ -84,7 +84,7 @@ private:
|
||||
bool expandSuccess;
|
||||
|
||||
#ifdef WIN32
|
||||
int volumes;
|
||||
unsigned int volumes;
|
||||
public:
|
||||
void updateVolumes ();
|
||||
void updateDirTree (const Gtk::TreeModel::iterator& iter);
|
||||
|
Reference in New Issue
Block a user