User forums > Using Code::Blocks
Issue in 1TBS code example
(1/1)
mimi89999:
The example code is:
```
int Foo(bool isBar)
{
if (isFoo) {
bar();
return 1;
} else {
return 0;
}
}
```
It's of course wrong. It should be `if (isBar) {`
OS: Debian GNU/Linux bullseye/sid 5.4.0-4-amd64 #1 SMP Debian 5.4.19-1 (2020-02-13)
C::B version: 20.03-r11983
mimi89999:
I made a patch for this: https://sourceforge.net/p/codeblocks/tickets/938/
I hope that it's correct.
MortenMacFly:
--- Quote from: mimi89999 on April 02, 2020, 03:23:31 pm ---I made a patch for this: https://sourceforge.net/p/codeblocks/tickets/938/
--- End quote ---
You are right. Fixed in trunk. Thank you!
Navigation
[0] Message Index
Go to full version