Skip to content

Commit

Permalink
Fix warning on msvc
Browse files Browse the repository at this point in the history
  • Loading branch information
radare authored and trufae committed Mar 12, 2024
1 parent 07c5b74 commit d9a1e8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libr/util/base36.c
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/* radare - LGPL - Copyright 2023 - pancake */
/* radare - LGPL - Copyright 2023-2024 - pancake */

#include <r_util.h>

static const char cb36[] = "0123456789abcdefghijklmnopqrstuvwxyz";

R_API void b36_fromnum(char *s, ut64 n) {
const int amount = n? (log ((double)n) / log ((double)36)): 0;
const int amount = n? (int)(log ((double)n) / log ((double)36)): 0;
char *p = s;
*p++ = '0';
*p++ = '_';
Expand Down

0 comments on commit d9a1e8d

Please sign in to comment.