Use unsigned int to avoid undefined behaviour when shifting a signed by 31 bits

This commit is contained in:
heckflosse
2018-11-21 15:17:11 +01:00
parent cb0b96f702
commit b98f73e51b
2 changed files with 2 additions and 2 deletions

View File

@@ -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;