Patch type mismatch in apat C library

This commit is contained in:
Eric Coissac
2025-04-23 16:14:10 +02:00
parent c0ecaf90ab
commit 13ff892ac9
4 changed files with 15 additions and 15 deletions

4
pkg/obiapat/pattern.go Normal file → Executable file
View File

@ -26,7 +26,7 @@ var _AllocatedApaPattern = 0
// ApatPattern stores a regular pattern usable by the
// Apat algorithm functions and methods
type _ApatPattern struct {
pointer *C.Pattern
pointer C.PatternPtr
pattern string
}
@ -159,7 +159,7 @@ func (pattern ApatPattern) Free() {
// Print method prints the ApatPattern to the standard output.
// This is mainly a debug method.
func (pattern ApatPattern) Print() {
C.PrintDebugPattern(C.PatternPtr(pattern.pointer.pointer))
C.PrintDebugPattern((*C.Pattern)(pattern.pointer.pointer))
}
// MakeApatSequence casts an obiseq.BioSequence to an ApatSequence.