Skip to content

Conversation

@gz
Copy link
Contributor

@gz gz commented Jan 20, 2026

we would generate i8 in this case but our code expects u8.

we would generate i8 in this case but our code expects
u8.

Signed-off-by: Gerd Zellweger <mail@gerdzellweger.com>
Copilot AI review requested due to automatic review settings January 20, 2026 22:19
@gz gz enabled auto-merge January 20, 2026 22:20
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes a bug in binary data generation where the minimum value for u8 elements was incorrectly using i8::MIN (-128) instead of u8::MIN (0).

Changes:

  • Added conditional logic to set the minimum value to u8::MIN when the scale field is set, matching the existing pattern for maximum value handling

Copy link
Contributor

@mihaibudiu mihaibudiu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

binary?
this is in generate_integer.
Also, why MIN when scale is defined?

@gz
Copy link
Contributor Author

gz commented Jan 21, 2026

we use it to generate binary too, we set scale to indicate it's a u8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants