Skip to content

Commit

Permalink
Revert int to ssize_t type change, but add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
Girgias authored Dec 27, 2024
1 parent 3de3ab3 commit d428e80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ext/mysqlnd/mysqlnd_loaddata.c
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ int mysqlnd_local_infile_read(void * ptr, zend_uchar * buf, unsigned int buf_len

DBG_ENTER("mysqlnd_local_infile_read");

ssize_t count = php_stream_read(info->fd, (char *) buf, buf_len);
// TODO Change this, and the return type of the function to ssize_t
int count = (int) php_stream_read(info->fd, (char *) buf, buf_len);

if (count < 0) {
strcpy(info->error_msg, "Error reading file");
Expand Down

0 comments on commit d428e80

Please sign in to comment.