Skip to content

Commit

Permalink
Fix compiler warning
Browse files Browse the repository at this point in the history
src/winscard_msg.c:249:17: warning: implicit conversion loses integer precision: 'ssize_t' (aka 'long') to 'int' [-Wshorten-64-to-32]
                        bytes_read = read(filedes, buffer, remaining);
                                   ~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • Loading branch information
LudovicRousseau committed May 6, 2024
1 parent 16369c8 commit 259cfcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/winscard_msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ INTERNAL LONG MessageReceiveTimeout(uint32_t command, void *buffer_void,
/* try to read only when socket is readable */
if (pollret > 0)
{
int bytes_read;
ssize_t bytes_read;

if (!(read_fd.revents & POLLIN))
{
Expand Down

0 comments on commit 259cfcf

Please sign in to comment.