Use const in uc_mem_write and derivates

This commit is contained in:
pancake
2015-08-24 17:02:14 +02:00
parent 62908b96eb
commit c5d99777f4
5 changed files with 5 additions and 5 deletions

2
uc.c
View File

@@ -356,7 +356,7 @@ uc_err uc_mem_read(uch handle, uint64_t address, uint8_t *bytes, size_t size)
UNICORN_EXPORT
uc_err uc_mem_write(uch handle, uint64_t address, uint8_t *bytes, size_t size)
uc_err uc_mem_write(uch handle, uint64_t address, const uint8_t *bytes, size_t size)
{
struct uc_struct *uc = (struct uc_struct *)(uintptr_t)handle;