From: Frans Meulenbroeks Date: Fri, 19 Feb 2010 15:23:25 +0100 Subject: [U-Boot] [PATCH] fix expression handling in itest Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear all, Attached is a patch for cmd_itest.c This fixes data access for .b and .w If there are issues applying the patch feel free to mail me and I will resent from home. And of course I am open to comments. There is one note: the evalexp function returns a long. For .b and .w access I choose to return an unsigned char resp unsigned short casted to long. It is my impression that would be desirable, but if not, feel free to change (and it might also be desirable to change the long to unsigned long, but as that ripples up to the caller, I decided not to touch that part. Best regards, Frans.