Skip to content

Commit

Permalink
bladeRF-cli: fixes 2**32 sample count overflow in RX config
Browse files Browse the repository at this point in the history
Fixes #941
  • Loading branch information
rthomp10 committed Sep 18, 2023
1 parent 0769521 commit cf181d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions host/utilities/bladeRF-cli/src/cmd/rx.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,10 +525,10 @@ static int rx_cmd_config(struct cli_state *s, int argc, char **argv)
} else if (status == 0) {
if (!strcasecmp("n", argv[i])) {
/* Configure number of samples to receive */
unsigned int n;
uint64_t n;
bool ok;

n = str2uint_suffix(val, 0, UINT_MAX, rxtx_kmg_suffixes,
n = str2uint64_suffix(val, 0, UINT64_MAX, rxtx_kmg_suffixes,
(int)rxtx_kmg_suffixes_len, &ok);

if (ok) {
Expand Down

0 comments on commit cf181d0

Please sign in to comment.