diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-01 11:42:05 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-09-01 12:25:38 +0200 |
commit | 682823b75bd8fc11a2f1f2c1d1a11cdeea26c847 (patch) | |
tree | 926fcce84ad70e88c48382ee20af1b0f8a9a6463 /ext/mysqlnd/mysqlnd_ps_codec.c | |
parent | 91d7e872e03ef7e7dbe7cbaf5d211cb52945b126 (diff) | |
download | php-git-682823b75bd8fc11a2f1f2c1d1a11cdeea26c847.tar.gz |
Add explicit double cast
Avoid precision warning.
Diffstat (limited to 'ext/mysqlnd/mysqlnd_ps_codec.c')
-rw-r--r-- | ext/mysqlnd/mysqlnd_ps_codec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/mysqlnd/mysqlnd_ps_codec.c b/ext/mysqlnd/mysqlnd_ps_codec.c index c0b3d1d6ff..e942f10fac 100644 --- a/ext/mysqlnd/mysqlnd_ps_codec.c +++ b/ext/mysqlnd/mysqlnd_ps_codec.c @@ -636,7 +636,7 @@ mysqlnd_stmt_execute_prepare_param_types(MYSQLND_STMT_DATA * stmt, zval ** copie Check bug #52891 : Wrong data inserted with mysqli/mysqlnd when using bind_param, value > LONG_MAX We do transformation here, which will be used later when sending types. The code later relies on this. */ - if (d > ZEND_LONG_MAX || d < ZEND_LONG_MIN) { + if (d >= (double) ZEND_LONG_MAX || d < (double) ZEND_LONG_MIN) { stmt->send_types_to_server = *resend_types_next_time = 1; convert_to_string_ex(tmp_data); } else { |