Skip to content

Commit

Permalink
string_utils: cast __s64 to long long signed int
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian Brauner committed Jul 29, 2021
1 parent 3f45308 commit e39f333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/string_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ static inline const char *fdstr(__s64 fd)
static const char *fdstr_invalid = "-EBADF";
static char buf[INTTYPE_TO_STRLEN(__s64)];

if (strnprintf(buf, sizeof(buf), "%lld", fd) < 0)
if (strnprintf(buf, sizeof(buf), "%lld", (long long signed int)fd) < 0)
return fdstr_invalid;

return buf;
Expand Down

0 comments on commit e39f333

Please sign in to comment.