Fix build on Windows

This commit is contained in:
lazymio 2021-11-01 10:39:31 +01:00
parent 147cb62240
commit f3cb4feec4
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873
1 changed files with 2 additions and 1 deletions

3
uc.c
View File

@ -1800,7 +1800,8 @@ uc_err uc_ctl(uc_engine *uc, uc_control_type control, ...)
uc_err err = UC_ERR_OK;
va_list args;
rw = control >> 30;
// MSVC Would do signed shift on signed integers.
rw = (uint32_t)control >> 30;
type = (control & ((1 << 16) - 1));
va_start(args, control);