You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this case, r.iter is already of type *_Ctype_struct_DBIterator, and the conversion didn't exist in the original source, so we shouldn't warn about it.
Repro with unconvert github.com/cockroachdb/cockroach/storage/engine.
The text was updated successfully, but these errors were encountered:
@tamird Possibly. I actually think the conversions are technically erroneous anyway (they're only enforcing that pointer arguments to C functions are convertible to their corresponding parameter types, whereas for consistency with the Go language they should be required to be assignable), but I think it's easy enough to just fix in unconvert.
cgo rewrites code like:
to:
In this case, r.iter is already of type
*_Ctype_struct_DBIterator
, and the conversion didn't exist in the original source, so we shouldn't warn about it.Repro with
unconvert github.com/cockroachdb/cockroach/storage/engine
.The text was updated successfully, but these errors were encountered: