com php-src: Kill a compiler warning in ext/mysqlnd: ext/mysqlnd/mysqlnd_wireprotocol.c
| From: | Kalle Sommer Nielsen | Date: | Wed, 23 Aug 2017 23:00:33 +0000 |
| Subject: | com php-src: Kill a compiler warning in ext/mysqlnd: ext/mysqlnd/mysqlnd_wireprotocol.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-99134@lists.php.net to get a copy of this message | ||
Commit: 2462d1a77c8fd6263b0811b6a58ac686a3100de2
Author: Kalle Sommer Nielsen <kalle@php.net> Thu, 24 Aug 2017 01:00:33 +0200
Parents: 7d7be194d38d06056153ce9272544ec7c7fe10a7
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2462d1a77c8fd6263b0811b6a58ac686a3100de2
Log:
Kill a compiler warning in ext/mysqlnd
Changed paths:
M ext/mysqlnd/mysqlnd_wireprotocol.c
Diff:
diff --git a/ext/mysqlnd/mysqlnd_wireprotocol.c b/ext/mysqlnd/mysqlnd_wireprotocol.c
index 2a2cd9b..b5ab7b1 100644
--- a/ext/mysqlnd/mysqlnd_wireprotocol.c
+++ b/ext/mysqlnd/mysqlnd_wireprotocol.c
@@ -538,7 +538,7 @@ size_t php_mysqlnd_auth_write(void * _packet)
DBG_RETURN(0);
}
- int1store(p, packet->auth_data_len);
+ int1store(p, (int8_t)packet->auth_data_len);
++p;
/*!!!!! is the buffer big enough ??? */
if (sizeof(buffer) < (packet->auth_data_len + (p - buffer))) {