From e8d734b1c2b6b5d489ef67ccae5d301072db396c Mon Sep 17 00:00:00 2001 From: Jocelyn Turcotte Date: Thu, 8 Dec 2016 15:56:26 +0100 Subject: [PATCH] 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. --- src/libsync/syncfileitem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2