From: Wolfgang Denk Date: Thu, 08 Apr 2010 12:11:02 +0200 Subject: [U-Boot] [PATCH] fsl-diu: Using I/O accessor to CCSR space In-Reply-To: References: <1270623077-23603-1-git-send-email-daveliu@freescale.com> Message-ID: <20100408101103.001D81051E73@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear "Liu Dave-R63238", In message you wrote: > > > 'ad' should be cast to a u32, not an "unsigned int". You > > shouldn't compare a sized type with an unsized type. ... > The u32 is same as "unsigned int". Maybe, maybe not. If you want to be safe, then compare u32 with u32 only. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de When you say "I wrote a program that crashed Windows", people just stare at you blankly and say "Hey, I got those with the system, *for free*". - Linus Torvalds in <3itc77$9lj@ninurta.fer.uni-lj.si>