Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cs.c
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ static uint8_t skipdata_size(cs_struct *handle)
}

CAPSTONE_EXPORT
cs_err CAPSTONE_API cs_option(csh ud, cs_opt_type type, size_t value)
cs_err CAPSTONE_API cs_option(csh ud, cs_opt_type type, uintptr_t value)
{
struct cs_struct *handle;
cs_opt_mnem *opt;
Expand Down
5 changes: 3 additions & 2 deletions include/capstone/capstone.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ extern "C" {
#include <libkern/libkern.h>
#else
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#endif

Expand Down Expand Up @@ -70,7 +71,7 @@ extern "C" {
#define CS_MNEMONIC_SIZE 32

// Handle using with all API
typedef size_t csh;
typedef uintptr_t csh;

/// Architecture type
typedef enum cs_arch {
Expand Down Expand Up @@ -723,7 +724,7 @@ cs_err CAPSTONE_API cs_close(csh *handle);
even before cs_open()
*/
CAPSTONE_EXPORT
cs_err CAPSTONE_API cs_option(csh handle, cs_opt_type type, size_t value);
cs_err CAPSTONE_API cs_option(csh handle, cs_opt_type type, uintptr_t value);

/**
Report the last error number when some API function fail.
Expand Down
Loading