From: Wolfgang Denk Date: Thu, 14 Mar 2013 12:38:29 +0100 Subject: [U-Boot] [PATCH V4] nitrogen: Use unsigned long to specify the total RAM size In-Reply-To: <1363248561-11974-1-git-send-email-sbabic@denx.de> References: <1363215553-27684-2-git-send-email-festevam@gmail.com> <1363248561-11974-1-git-send-email-sbabic@denx.de> Message-ID: <20130314113829.6274E2005BB@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 Stefano Babic, In message <1363248561-11974-1-git-send-email-sbabic@denx.de> you wrote: > > 2GB can not fit in 32-bits, so use ulong instead. unsigned long is 32 bits, too. And, strictly speaking, GB is a decimal unit, so 2 GB = 2e9 = 0x77359400 which fits nicely into a signed 32 bit number. What you actually mean is: 2 GiB cannot be expressed as a 32 bit signed number. 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 Of all the things I've lost, I miss my mind the most.