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 ()
|
void DirBrowser::updateVolumes ()
|
||||||
{
|
{
|
||||||
|
|
||||||
int nvolumes = GetLogicalDrives ();
|
unsigned int nvolumes = GetLogicalDrives ();
|
||||||
|
|
||||||
if (nvolumes != volumes) {
|
if (nvolumes != volumes) {
|
||||||
GThreadLock lock;
|
GThreadLock lock;
|
||||||
|
@@ -84,7 +84,7 @@ private:
|
|||||||
bool expandSuccess;
|
bool expandSuccess;
|
||||||
|
|
||||||
#ifdef WIN32
|
#ifdef WIN32
|
||||||
int volumes;
|
unsigned int volumes;
|
||||||
public:
|
public:
|
||||||
void updateVolumes ();
|
void updateVolumes ();
|
||||||
void updateDirTree (const Gtk::TreeModel::iterator& iter);
|
void updateDirTree (const Gtk::TreeModel::iterator& iter);
|
||||||
|
Reference in New Issue
Block a user