Skip to content

Commit

Permalink
useless assert removed
Browse files Browse the repository at this point in the history
  • Loading branch information
folkertvanheusden committed Jun 28, 2024
1 parent 7d19e8d commit 9a0cd69
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,6 @@ char * amount_to_str(long long int amount)
{
char *out = mymalloc(AMOUNT_STR_LEN); /* ...XB\0 */

assert(amount >= 0);

if (amount >= M_GB) /* GB */
snprintf(out, AMOUNT_STR_LEN, "%dGB", (int)((amount + M_GB - 1) / M_GB));
else if (amount >= M_MB) /* MB */
Expand Down

0 comments on commit 9a0cd69

Please sign in to comment.