Skip to content

Commit

Permalink
chore: Update build files and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
suifei committed May 27, 2024
1 parent a34b253 commit edd5824
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion FyneApp.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ Website = "https://github.com/suifei/asm2hex"
Name = "ASM to HEX Converter"
ID = "suifei.asm2hex.app"
Version = "1.1.0"
Build = 54
Build = 55
20 changes: 10 additions & 10 deletions bindings/capstone/capstone.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ const (
API_MINOR = 0
)

type Architecture uint64
type Mode uint64
type OptionType uint64
type OptionValue uint64
type OperandType uint64
type AccessType uint64
type GroupType uint64
type Architecture uint
type Mode uint
type OptionType uint
type OptionValue uint
type OperandType uint
type AccessType uint
type GroupType uint

const (
ARCH_ARM Architecture = C.CS_ARCH_ARM
Expand Down Expand Up @@ -177,8 +177,8 @@ func New(arch Architecture, mode Mode) (*Engine, error) {
return &Engine{handle}, nil
}

func (e *Engine) Option(opt_type OptionType, value OptionValue) error {
if cserr := C.cs_option(e.handle, C.cs_opt_type(opt_type), C.ulong(value)); cserr != C.CS_ERR_OK {
func (e *Engine) Option(opt_type OptionType, value C.size_t) error {
if cserr := C.cs_option(e.handle, C.cs_opt_type(opt_type), value); cserr != C.CS_ERR_OK {
return CsError(cserr)
}
return nil
Expand Down Expand Up @@ -228,7 +228,7 @@ func (e *Engine) Close() error {

// conforms to usercorn/models.Ins interface
type Ins struct {
address uint64
address uint64
dataSlice []byte
mnemonic string
opstr string
Expand Down

0 comments on commit edd5824

Please sign in to comment.