Fix uc_version and bump again

This commit is contained in:
lazymio 2021-11-25 18:19:46 +01:00
parent 3288a58fa6
commit 10d88e89a5
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873
4 changed files with 4 additions and 5 deletions

View File

@ -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"

View File

@ -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"

View File

@ -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

3
uc.c
View File

@ -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