if... else... odd behavior


2005-07-29 11:04:02 PM
cppbuilder56
Or odd to me, anyway. Here's the snippet:
1 while (1)
2 {
3 au = a[3] - 1.0;
4 if (au < 0.0) {
5 break;
6 }
7 else {
8 a[3] = au;
9 }
10 }
When I run this in the IDE, there's no little dot in the margin to let
me set a breakpoint at line 8. Also, even when line 4
(au < 0.0) evaluates to false, if I have a breakpoint on line 5, the
IDE stops there every time as if it were true. I'm using CPPBuilder 6.