From 10d88e89a5648ee3ea90e20565e7cd6207484b1c Mon Sep 17 00:00:00 2001 From: lazymio Date: Thu, 25 Nov 2021 18:19:46 +0100 Subject: [PATCH] Fix uc_version and bump again --- bindings/python/setup.py | 2 +- bindings/rust/Cargo.toml | 2 +- include/unicorn/unicorn.h | 2 +- uc.c | 3 +-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/bindings/python/setup.py b/bindings/python/setup.py index 41c3cc1d..9a855a27 100755 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -29,7 +29,7 @@ SRC_DIR = os.path.join(ROOT_DIR, 'src') UC_DIR = os.path.join(ROOT_DIR, '../..') BUILD_DIR = os.path.join(UC_DIR, 'build') -VERSION = "2.0.0rc5" +VERSION = "2.0.0rc5.post1" if SYSTEM == 'darwin': LIBRARY_FILE = "libunicorn.dylib" diff --git a/bindings/rust/Cargo.toml b/bindings/rust/Cargo.toml index 3d501cc1..cb051b6a 100644 --- a/bindings/rust/Cargo.toml +++ b/bindings/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "unicorn-engine" -version = "2.0.0-rc5" +version = "2.0.0-rc5.post1" authors = ["Ziqiao Kong", "Lukas Seidel"] documentation = "https://github.com/unicorn-engine/unicorn/wiki" edition = "2021" diff --git a/include/unicorn/unicorn.h b/include/unicorn/unicorn.h index 87ea089f..54217101 100644 --- a/include/unicorn/unicorn.h +++ b/include/unicorn/unicorn.h @@ -71,7 +71,7 @@ typedef size_t uc_hook; #define UC_API_MAJOR 2 #define UC_API_MINOR 0 #define UC_API_PATCH 0 -#define UC_API_EXTRA 4 +#define UC_API_EXTRA 5 // Unicorn package version #define UC_VERSION_MAJOR UC_API_MAJOR diff --git a/uc.c b/uc.c index a5bdca5b..e0a328ff 100644 --- a/uc.c +++ b/uc.c @@ -35,8 +35,7 @@ unsigned int uc_version(unsigned int *major, unsigned int *minor) *minor = UC_API_MINOR; } - return (UC_API_EXTRA << 24) + (UC_API_PATCH << 16) + (UC_API_MAJOR << 8) + - UC_API_MINOR; + return (UC_API_MAJOR << 24) + (UC_API_MINOR << 16) + (UC_API_PATCH << 8) + UC_API_EXTRA; } UNICORN_EXPORT