[flashrom] [commit] r1428 - trunk

repository service svn at flashrom.org
Tue Sep 6 20:17:02 CEST 2011


Author: uwe
Date: Tue Sep  6 20:17:02 2011
New Revision: 1428
URL: http://flashrom.org/trac/flashrom/changeset/1428

Log:
Fix linux_spi.c build on 32bit systems.

Signed-off-by: Uwe Hermann <uwe at hermann-uwe.de>
Acked-by: Uwe Hermann <uwe at hermann-uwe.de>

Modified:
   trunk/linux_spi.c

Modified: trunk/linux_spi.c
==============================================================================
--- trunk/linux_spi.c	Sat Sep  3 20:37:52 2011	(r1427)
+++ trunk/linux_spi.c	Tue Sep  6 20:17:02 2011	(r1428)
@@ -107,11 +107,11 @@
 {
 	struct spi_ioc_transfer msg[2] = {
 		{
-			.tx_buf = (uint64_t)txbuf,
+			.tx_buf = (uint64_t)(ptrdiff_t)txbuf,
 			.len = writecnt,
 		},
 		{
-			.rx_buf = (uint64_t)rxbuf,
+			.rx_buf = (uint64_t)(ptrdiff_t)rxbuf,
 			.len = readcnt,
 		},
 	};




More information about the flashrom mailing list