* Balloon bug? (changes b when b--)
@ 2010-12-15 4:11 Gene Smith
0 siblings, 0 replies; only message in thread
From: Gene Smith @ 2010-12-15 4:11 UTC (permalink / raw)
To: insight
I have test code that looks like this in insight:
1 int main (void)
- 2 {
- 3 int a = 0;
- 4 int b = 10;
5
- 6 while (b--)
7 {
- 8 a = a + 1;
9 }
10 /* should be 10 */
- 11 return a;
- 12 }
It appeared that "b" was sometimes decrementing by more than 1 as I
stepped through. So sometimes "a" would result in less than 10. I found
that the balloon inspection (by holding the mouse over the variable) was
causing b to decrement if I touched the --. I don't think I have ever
seen this before using insight. This is version 6.8.
-gene
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-12-15 4:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-15 4:11 Balloon bug? (changes b when b--) Gene Smith
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).