Skip to content

Commit

Permalink
fix: compilation error in Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Feb 9, 2024
1 parent 18b752a commit 7df1205
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ func (r *Rule) Patterns() []Pattern {
r.patterns = make([]Pattern, numPatterns)

for i := 0; i < numPatterns; i++ {
pattern := C.yrx_patterns_get(r.cPatterns, C.ulong(i))
pattern := C.yrx_patterns_get(r.cPatterns, C.size_t(i))
if pattern == nil {
panic("yrx_patterns_get failed")
}
Expand Down

0 comments on commit 7df1205

Please sign in to comment.