@@ -1157,7 +1157,7 @@ bool Field_num::get_int(CHARSET_INFO *cs, const char *from, uint len,
11571157 if (unsigned_flag)
11581158 {
11591159
1160- if (((ulonglong) *rnd > unsigned_max) && (*rnd= (longlong) unsigned_max) ||
1160+ if (((( ulonglong) *rnd > unsigned_max) && (*rnd= (longlong) unsigned_max) ) ||
11611161 error == MY_ERRNO_ERANGE)
11621162 {
11631163 goto out_of_range;
@@ -1324,7 +1324,7 @@ void Field::copy_from_tmp(int row_offset)
13241324 if (null_ptr)
13251325 {
13261326 *null_ptr= (uchar) ((null_ptr[0 ] & (uchar) ~(uint) null_bit) |
1327- null_ptr[row_offset] & (uchar) null_bit);
1327+ ( null_ptr[row_offset] & (uchar) null_bit) );
13281328 }
13291329}
13301330
@@ -3674,8 +3674,8 @@ int Field_float::store(const char *from,uint len,CHARSET_INFO *cs)
36743674 int error;
36753675 char *end;
36763676 double nr= my_strntod (cs,(char *) from,len,&end,&error);
3677- if (error || (!len || (uint) (end-from) != len &&
3678- table->in_use ->count_cuted_fields ))
3677+ if (error || (!len || (( uint) (end-from) != len &&
3678+ table->in_use ->count_cuted_fields )))
36793679 {
36803680 set_warning (MYSQL_ERROR::WARN_LEVEL_WARN,
36813681 (error ? ER_WARN_DATA_OUT_OF_RANGE : WARN_DATA_TRUNCATED), 1 );
@@ -3915,8 +3915,8 @@ int Field_double::store(const char *from,uint len,CHARSET_INFO *cs)
39153915 int error;
39163916 char *end;
39173917 double nr= my_strntod (cs,(char *) from, len, &end, &error);
3918- if (error || (!len || (uint) (end-from) != len &&
3919- table->in_use ->count_cuted_fields ))
3918+ if (error || (!len || (( uint) (end-from) != len &&
3919+ table->in_use ->count_cuted_fields )))
39203920 {
39213921 set_warning (MYSQL_ERROR::WARN_LEVEL_WARN,
39223922 (error ? ER_WARN_DATA_OUT_OF_RANGE : WARN_DATA_TRUNCATED), 1 );
@@ -4771,7 +4771,7 @@ int Field_time::store(longlong nr, bool unsigned_val)
47714771 MYSQL_TIMESTAMP_TIME, 1 );
47724772 error= 1 ;
47734773 }
4774- else if (nr > (longlong) TIME_MAX_VALUE || nr < 0 && unsigned_val)
4774+ else if (nr > (longlong) TIME_MAX_VALUE || ( nr < 0 && unsigned_val) )
47754775 {
47764776 tmp= TIME_MAX_VALUE;
47774777 set_datetime_warning (MYSQL_ERROR::WARN_LEVEL_WARN,
@@ -4930,7 +4930,7 @@ int Field_year::store(const char *from, uint len,CHARSET_INFO *cs)
49304930 int error;
49314931 longlong nr= cs->cset ->strntoull10rnd (cs, from, len, 0 , &end, &error);
49324932
4933- if (nr < 0 || nr >= 100 && nr <= 1900 || nr > 2155 ||
4933+ if (nr < 0 || ( nr >= 100 && nr <= 1900 ) || nr > 2155 ||
49344934 error == MY_ERRNO_ERANGE)
49354935 {
49364936 *ptr=0 ;
@@ -4973,7 +4973,7 @@ int Field_year::store(double nr)
49734973
49744974int Field_year::store (longlong nr, bool unsigned_val)
49754975{
4976- if (nr < 0 || nr >= 100 && nr <= 1900 || nr > 2155 )
4976+ if (nr < 0 || ( nr >= 100 && nr <= 1900 ) || nr > 2155 )
49774977 {
49784978 *ptr= 0 ;
49794979 set_warning (MYSQL_ERROR::WARN_LEVEL_WARN, ER_WARN_DATA_OUT_OF_RANGE, 1 );
@@ -5968,16 +5968,16 @@ int Field_str::store(double nr)
59685968 /* Calculate the exponent from the 'e'-format conversion */
59695969 if (anr < 1.0 && anr > 0 )
59705970 {
5971- for (exp= 0 ; anr < 1e-100 ; exp-= 100 , anr*= 1e100 );
5972- for (; anr < 1e-10 ; exp-= 10 , anr*= 1e10 );
5973- for (i= 1 ; anr < 1 / log_10[i]; exp--, i++);
5971+ for (exp= 0 ; anr < 1e-100 ; exp-= 100 , anr*= 1e100 ) ;
5972+ for (; anr < 1e-10 ; exp-= 10 , anr*= 1e10 ) ;
5973+ for (i= 1 ; anr < 1 / log_10[i]; exp--, i++) ;
59745974 exp--;
59755975 }
59765976 else
59775977 {
5978- for (exp= 0 ; anr > 1e100 ; exp+= 100 , anr/= 1e100 );
5979- for (; anr > 1e10 ; exp+= 10 , anr/= 1e10 );
5980- for (i= 1 ; anr > log_10[i]; exp++, i++);
5978+ for (exp= 0 ; anr > 1e100 ; exp+= 100 , anr/= 1e100 ) ;
5979+ for (; anr > 1e10 ; exp+= 10 , anr/= 1e10 ) ;
5980+ for (i= 1 ; anr > log_10[i]; exp++, i++) ;
59815981 }
59825982
59835983 max_length= local_char_length - neg;
@@ -7986,7 +7986,7 @@ bool Field_num::eq_def(Field *field)
79867986 Field_num *from_num= (Field_num*) field;
79877987
79887988 if (unsigned_flag != from_num->unsigned_flag ||
7989- zerofill && !from_num->zerofill && !zero_pack () ||
7989+ ( zerofill && !from_num->zerofill && !zero_pack () ) ||
79907990 dec != from_num->dec )
79917991 return 0 ;
79927992 return 1 ;
@@ -8065,7 +8065,7 @@ int Field_bit::store(const char *from, uint length, CHARSET_INFO *cs)
80658065{
80668066 int delta;
80678067
8068- for (; length && !*from; from++, length--); // skip left 0's
8068+ for (; length && !*from; from++, length--) ; // skip left 0's
80698069 delta= bytes_in_rec - length;
80708070
80718071 if (delta < -1 ||
@@ -8284,7 +8284,7 @@ int Field_bit_as_char::store(const char *from, uint length, CHARSET_INFO *cs)
82848284 int delta;
82858285 uchar bits= (uchar) (field_length & 7 );
82868286
8287- for (; length && !*from; from++, length--); // skip left 0's
8287+ for (; length && !*from; from++, length--) ; // skip left 0's
82888288 delta= bytes_in_rec - length;
82898289
82908290 if (delta < 0 ||
0 commit comments