From: Jocelyn Turcotte Date: Thu, 8 Dec 2016 14:56:26 +0000 (+0100) Subject: Fix the sync direction being wrong on MSVC X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~970 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e8d734b1c2b6b5d489ef67ccae5d301072db396c;p=nextcloud-desktop.git Fix the sync direction being wrong on MSVC 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. --- diff --git a/src/libsync/syncfileitem.h b/src/libsync/syncfileitem.h index cf7d0d6a3..20c0bf005 100644 --- a/src/libsync/syncfileitem.h +++ b/src/libsync/syncfileitem.h @@ -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);