[sane-devel] C undefined operations in sane-backends-1.0.7-b

2002-01-24 Thread Ingo Wilken
> i do no understand this discussion about the code fragment > bit =3D ++bit % 8; > 1. Since 20 years, C is my favorite programming language > 2. Since some years, I give classes in C > 3. The code line "bit =3D ++bit % 8", is fully correct. No. 'bit' is modified twice between sequence po

[sane-devel] C undefined operations in sane-backends-1.0.7-b

2002-01-24 Thread Tim Waugh
--RacQGezy2Y99S6cT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Thu, Jan 24, 2002 at 08:49:56AM +0100, Joachim Backes wrote: > 1. Since 20 years, C is my favorite programming language C has become defined better in recent years. Take a read of C99, for instance. >

[sane-devel] C undefined operations in sane-backends-1.0.7-b

2002-01-24 Thread Joachim Backes
Hi, guys, i do no understand this discussion about the code fragment bit = ++bit % 8; 1. Since 20 years, C is my favorite programming language 2. Since some years, I give classes in C 3. The code line "bit = ++bit % 8", is fully correct. Reason: a) ++ has higher priority than %