aboutsummaryrefslogtreecommitdiffhomepage
path: root/test.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2023-05-29 14:35:18 +0200
committerlemon <lsof@mailbox.org>2023-05-30 08:57:37 +0200
commit264c757d66f7b8c469b127cdb64ec9b18f385552 (patch)
tree372046067e33eb71968889743913e1aeb477a8e3 /test.c
parent1c04435e5d33378ffa8eca65ca1ed35f3f9f4134 (diff)
bugfix with if true branch ending in return
Diffstat (limited to 'test.c')
-rw-r--r--test.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/test.c b/test.c
index 9a3aafb..ff9b430 100644
--- a/test.c
+++ b/test.c
@@ -36,7 +36,8 @@ int foop(struct foo *foo) {
++foo->n0.n1.n2.ww;
int xy = (*foo).xy;
foo->flex[2] *= 5;
- if (foo->x)return xy; else return foo->y;
+ if (foo->x)return xy;
+ return foo->y;
}
int abs(int x){