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)
commite8d734b1c2b6b5d489ef67ccae5d301072db396c
tree6bc6068280360f1a4d6680862701ac8f3554f2d5
parenta38864fcb43ffc6d51190fcd173e59914a17a6ed
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