[sane-devel] ambiguous post-increment in canon-sane.c
Johannes Meixner
jsmeix at suse.de
Mon Dec 11 12:55:52 CET 2006
Hello,
On Dec 8 15:34 Ulrich Deiters wrote (shortened):
> Interesting! The incriminated C code looked perfectly innocent
> to me (if the incrementing operation is carried out after all
> assignments, as it should, there is no ambiguity).
Perhaps "ambiguous" is not exactly the right word because
in a textbook about C I read that '++' and '--' are not allowed
on the left side of '=' (e.g. x++ = 1; is not allowed) and in
this case the compiler should complain regarding "lvalue".
Kind Regards
Johannes Meixner
--
SUSE LINUX Products GmbH, Maxfeldstrasse 5 Mail: jsmeix at suse.de
90409 Nuernberg, Germany WWW: http://www.suse.de/
More information about the sane-devel
mailing list