mirror of
https://github.com/featurebasedb/featurebase.git
synced 2026-09-07 17:15:56 +00:00
Corrected If statement logic error
This commit is contained in:
parent
2d151cd41a
commit
3eed3b472f
1 changed files with 1 additions and 1 deletions
|
|
@ -3964,7 +3964,7 @@ func (op *op) UnmarshalBinary(data []byte) error {
|
|||
if op.typ > 1 {
|
||||
// This ensures that in doing 13+op.value*8, the max int won't be exceeded and a wrap around case
|
||||
// (resulting in a negative value) won't occur in the slice indexing while writing
|
||||
if int(op.value) > int(maxBatchSize) {
|
||||
if op.value > maxBatchSize {
|
||||
return fmt.Errorf("Maximum operation size exceeded")
|
||||
}
|
||||
if len(data) < int(13+op.value*8) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue