#2106: Make ParseFile.c more robust -----------------------+---------------------------------------------------- Reporter: eschnett | Owner: Type: defect | Status: reopened Priority: unset | Milestone: Component: Cactus | Version: development version Resolution: | Keywords: -----------------------+----------------------------------------------------
Comment (by eschnett):
That's not a valid optimization. The "usual arithmetic conversions" mean that both LHS and RHS of the comparison operator are converted to unsigned before the comparison https://wiki.sei.cmu.edu/confluence/display/c/INT02-C.+Understand+integer+conversion+rules.