[ros-dev] [ros-diffs] [dgorbachev] 39422: Fix bug #4129 in CmpGetNameControlBlock().

Timo Kreuzer timo.kreuzer at web.de
Mon Feb 16 20:21:59 CET 2009


Ged schrieb:
> IMO parenthesis should always be used, it helps to clarify what the
> developer who wrote the code really wanted.
>   
In this case the exact opposite is the case. The braces would make you
and the compiler think that the programmer really wanted to make an
assignment inside the if .





More information about the Ros-dev mailing list