]> dgit.raspbian.org Git - nextcloud-desktop.git/commitdiff
Fix the sync direction being wrong on MSVC
authorJocelyn Turcotte <jturcotte@woboq.com>
Thu, 8 Dec 2016 14:56:26 +0000 (15:56 +0100)
committerJocelyn Turcotte <jturcotte@woboq.com>
Fri, 9 Dec 2016 09:03:46 +0000 (10:03 +0100)
The compiler seems to use signed enums and we need to reserve an extra
bit for the sign to avoid the 2 value to overflow and being interpreted
as -2 when read, and thus not being correctly compared to the full enum
value.

src/libsync/syncfileitem.h

index cf7d0d6a30ca5ca347dca803d352cda733ed5ea8..20c0bf005dac58f0acb037613d0015b33652a878 100644 (file)
@@ -138,7 +138,7 @@ public:
     QString _file;
     QString _renameTarget;
     Type _type BITFIELD(3);
-    Direction _direction BITFIELD(2);
+    Direction _direction BITFIELD(3);
     bool _isDirectory BITFIELD(1);
     bool _serverHasIgnoredFiles BITFIELD(1);