Apr
29
comment Integer not comparing equal to its value
That is very interesting. It does make sense.
Apr
29
accepted Integer not comparing equal to its value
Apr
29
comment Integer not comparing equal to its value
Thank you. I didn't realize that running out of bounds could break the future comparison, so I didn't worry about that part of the code. I would certainly have used a container, but this code was given to me in this state. It would be quite interesting to learn how that breaks the comparison between 6 and 6.
Apr
29
comment Integer not comparing equal to its value
It looks like you are correct about the problem. Changing the size to 7 fixes the problem. I had noticed that it was running over the end of the array (I didn't write the code), but didn't think it mattered since I was getting the number 6 back. I would be very interested to learn why this breaks the comparison.
Apr
29
comment Integer not comparing equal to its value
The size of ch->fb is 6.
Apr
29
revised Integer not comparing equal to its value
added 97 characters in body
Apr
29
revised Integer not comparing equal to its value
added 59 characters in body
Apr
29
comment Integer not comparing equal to its value
I can't create a minimum, complete, and verifiable example. I realize it is recommended that you do so, but I can't seem to create one that triggers this problem.
Apr
29
revised Integer not comparing equal to its value
added 33 characters in body
Apr
29
comment Integer not comparing equal to its value
I'll add the condition to the question, since it seems to somehow be causing this.
Apr
29
comment Integer not comparing equal to its value
The code is copy/pasted here and "some condition" is the only change. If I change the condition to allGreen < 6, it works for me, too.
Apr
29
revised Integer not comparing equal to its value
Removed single quotes
Apr
29
comment Integer not comparing equal to its value
Some condition is "ch->fb[allGreen]->selection_color() == FL_GREEN"
Apr
29
comment Integer not comparing equal to its value
I didn't use single quotes in the code. I guess my wording was pretty poor.
Apr
29
comment Integer not comparing equal to its value
Sorry, some condition is not very helpful since it is tightly integrated with the rest of the code base.
Apr
29
asked Integer not comparing equal to its value
Mar
7
awarded Supporter
Mar
7
comment What does かなり actually mean?
Thank you. This is exactly the answer I was looking for.
Mar
7
accepted What does かなり actually mean?
Mar
7
comment What does かなり actually mean?
My real question is, does inserting かなり strengthen an assertion (like quite) or weaken it (like fairly)? Or, how can you tell what someone wants to do if it can do either?
1 2 3 4 5