Arduino Forum

Forum 2005-2010 (read only) => Software => Bugs & Suggestions => Topic started by: g3rse on Jan 09, 2008, 07:44 pm

Title: Possible documentation error: bitshift
Post by: g3rse on Jan 09, 2008, 07:44 pm
On page http://www.arduino.cc/en/Reference/Bitshift there is

   int y = unsigned(x) >> 3;  // binary: 0001111111111110

Is that really correct? Surely, the syntax for typecasts is (type)variable
Title: Re: Possible documentation error: bitshift
Post by: paulb on Jan 10, 2008, 05:07 am
thanks  g3rse,

fixed