From 92aef346f2bd7167b892beddafd0959801df0e3c Mon Sep 17 00:00:00 2001 From: Roman971 <32455037+Roman971@users.noreply.github.com> Date: Thu, 12 May 2022 15:04:37 +0200 Subject: Remove many redundant parentheses (eg. in boolean conditions) (#1220) * Remove many unnecessary parens around boolean conditions * Remove duplicate parens in some expressions * Apply review suggestions * Update src/overlays/actors/ovl_Bg_Jya_Lift/z_bg_jya_lift.c Co-authored-by: EllipticEllipsis Co-authored-by: EllipticEllipsis --- src/code/z_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/code/z_debug.c') diff --git a/src/code/z_debug.c b/src/code/z_debug.c index 8b2a6fe93..c3d4f8cc8 100644 --- a/src/code/z_debug.c +++ b/src/code/z_debug.c @@ -67,7 +67,7 @@ void func_8006376C(u8 x, u8 y, u8 colorId, const char* text) { i = 0; bufText = buf->text; - while ((*bufText++ = *text++)) { + while ((*bufText++ = *text++) != '\0') { if (i++ > 0x14) { break; } -- cgit v1.2.3