<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2900.5764" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>A neni to prechod z deste pod okap? Proste na 
jednom kompilatoru to pojede a na druhem ne???</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Michal Gregor</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=tomasek@etf.cuni.cz href="mailto:tomasek@etf.cuni.cz">Petr 
  Tomasek</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A title=hw-list@list.hw.cz 
  href="mailto:hw-list@list.hw.cz">HW-news</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, July 22, 2009 2:23 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Re: Automaticke pretypovani u 
  AVR-GCC</DIV>
  <DIV><FONT face=Arial size=2></FONT><FONT face=Arial size=2></FONT><FONT 
  face=Arial size=2></FONT><FONT face=Arial size=2></FONT><BR></DIV>&gt; To by 
  mozna melo nasledujici reseni:<BR>&gt; a4 = ((x &gt;&gt; 16) &gt;&gt; 
  8);<BR>&gt; :-)<BR><BR>Lepsi je v takovem pripade pouzit union, treba 
  jako:<BR><BR>typedef union {<BR>&nbsp;&nbsp;&nbsp; unsigned long 
  val32;<BR>&nbsp;&nbsp;&nbsp; struct {<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  unsigned char a4;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unsigned char 
  a3;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unsigned char 
  a2;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unsigned char a1;<BR>&nbsp;&nbsp;&nbsp; 
  } val8;<BR>&nbsp; } int32;<BR><BR>(Samozrejme je nutne vedet, jaci indiáni 
  rostou v dane architekture...)<BR><BR>P.T.<BR><BR></BLOCKQUOTE></BODY></HTML>