So the problem is not in G.INTvalue
You'd think so, based on that, but... in the heat of programming battle, and especially when people are under pressure of deadline, you have to remember that programmers are human too. If I take verbatim:
then I can tell immediately that this was not copied from the source code, but typed in manually without going through the IDE. Don't know what the heck the quotation mark is, either. So... is that the code that was run? And how do we know the "comparison fails"? Is this based on the debug trace cursor?
it is something in his compiler or libraries that is not configured properly or not updated properly.
Could it be the compiler? Perhaps, although: the Ifs don't appear to contain references libraries or service packs or other external code not generated by the compiler, and if there was some problem in runtime JIT handling of If statements and integer operations, then this would manifest itself much more widely.
But your idea could be right. Quickest way to rule out the build environment being the problem might be:
recompile a previous (known, working) program, see if it still works. Presumably it will contain many Ifs and integer operations. If older programs still compile and run ok, then that suggests that the build and test environment and hardware are ok, and we are back to:
what is it about this particular integer If comparison?
I'm thinking that it could well be either: there is a type or cast or conversion problem, or something is being changed unexpectedly (nested For loops using the same variable are a good trap). But without seeing the actual code that is producing the problem, it's like swatting mozzies in the dark.
Try to spoon feed the compiler with different logic is sadly in my opinion not the solution
Not sure what this is in reference to. What I see in people's suggestions here are two primary keys to debugging:
divide and conquer, and
trust but verify.