Skip to content

Commit

Permalink
Disable unused C field causing type error in ImageMagick 7.1.1-24 (fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
justinfx committed Jan 8, 2024
1 parent 2c85e18 commit e61861a
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion imagick/channel_statistics.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,13 @@ import "C"
//"unsafe"

type ChannelStatistics struct {
cs *C.ChannelStatistics
// TODO: https://github.com/gographics/imagick/issues/301
// As of ImageMagick 7.1.1-24 they have introduced fields
// of type "long double". This causes a cgo compilation error.
// Disabling this reference for now until the struct is actually
// used somewhere in these bindings.
// When needed, A c-shim type will need to be declared to mirror
// ChannelStatistics with a double instead of long double fields,
// and a helper to convert between.
//cs *C.ChannelStatistics
}

0 comments on commit e61861a

Please sign in to comment.