
skasal at redhat
Nov 18, 2009, 9:13 AM
Post #1 of 2
(228 views)
Permalink
|
|
[PATCH] fix logic for a workaround in POSIX.xs
|
|
Hello, I noticed a mistake in POSIX.xs. There is the assignment "RETVAL = 0" to silence the compiler in case it incorrectly reports return of an undefined value. This assignment should be present whenever *any* of the symbols is not defined. But the code was written so that the assignment was compiled only when *none* of the symbols was defined. I decided to remove the outer brace; I think the mistake proves that the conditions is more readable when expanded. Have a nice day, Stepan Kasal
|