mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Cast size_t to unsigned long.
printf expects unsigned long (%lu) argument, however, size_t doesn't have to be declared as such. As %zu is C99 (but not C++), it shouldn't be used directly. Instead, I have to cast value to the correct type.
This commit is contained in:
parent
8ceb4b83a4
commit
ac7a461070
1 changed files with 1 additions and 1 deletions
2
exec.cpp
2
exec.cpp
|
@ -188,7 +188,7 @@ void print_open_fds(void)
|
|||
{
|
||||
if (open_fds.at(i))
|
||||
{
|
||||
fprintf(stderr, "fd %lu\n", i);
|
||||
fprintf(stderr, "fd %lu\n", (unsigned long) i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue