mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
mysqlnd: Use true / false instead of 1 / 0 when assigning to bool
Changes done with Coccinelle:
@@
bool b;
@@
- b = 0
+ b = false
@@
bool b;
@@
- b = 1
+ b = true
This commit is contained in:
committed by
Tim Düsterhus
parent
9fa2e96c90
commit
b12eae465c
@@ -317,7 +317,7 @@ ps_fetch_date(zval * zv, const MYSQLND_FIELD * const field, const unsigned int p
|
||||
const zend_uchar * to = *row;
|
||||
|
||||
t.time_type = MYSQLND_TIMESTAMP_DATE;
|
||||
t.neg = 0;
|
||||
t.neg = false;
|
||||
|
||||
t.second_part = t.hour = t.minute = t.second = 0;
|
||||
|
||||
@@ -354,7 +354,7 @@ ps_fetch_datetime(zval * zv, const MYSQLND_FIELD * const field, const unsigned i
|
||||
const zend_uchar * to = *row;
|
||||
|
||||
t.time_type = MYSQLND_TIMESTAMP_DATETIME;
|
||||
t.neg = 0;
|
||||
t.neg = false;
|
||||
|
||||
t.year = (unsigned int) sint2korr(to);
|
||||
t.month = (unsigned int) to[2];
|
||||
|
||||
Reference in New Issue
Block a user