Commit fe06ffb3 authored by Hess Nathan's avatar Hess Nathan Committed by Anas Nashif
Browse files

coding guidelines: comply with MISRA Rule 13.4



- avoid to use assignment expression value

Signed-off-by: default avatarHess Nathan <nhess@baumer.com>
parent 680fa154
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1060,7 +1060,7 @@ static char *encode_float(double value,
			/* Fraction is subnormal.  Normalize it and correct
			/* Fraction is subnormal.  Normalize it and correct
			 * the exponent.
			 * the exponent.
			 */
			 */
			while (((fract <<= 1) & BIT_63) == 0) {
			for (fract <<= 1; (fract & BIT_63) == 0; fract <<= 1) {
				expo--;
				expo--;
			}
			}
		}
		}
+1 −1
Original line number Original line Diff line number Diff line
@@ -537,7 +537,7 @@ static inline struct rbnode *stack_left_limb(struct rbnode *n,
	f->stack[f->top] = n;
	f->stack[f->top] = n;
	f->is_left[f->top] = 0U;
	f->is_left[f->top] = 0U;


	while ((n = get_child(n, 0U)) != NULL) {
	for (n = get_child(n, 0U); n != NULL; n = get_child(n, 0U)) {
		f->top++;
		f->top++;
		f->stack[f->top] = n;
		f->stack[f->top] = n;
		f->is_left[f->top] = 1;
		f->is_left[f->top] = 1;