tschaub commented on PR #14026:
URL: https://github.com/apache/arrow/pull/14026#issuecomment-1242438825
```go
if h.Cap < uint64SizeBytes {
return nil
}
```
This would only work where `h.Cap` is an `int` (which probably works
everywhere except TinyGo). We could `int(h.Cap)` - though I imagine that would
seem mysterious to future readers (perhaps a comment could explain).
Would a check for `cap(b)` do it? Let me know which way you'd like to go.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]