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 <[email protected]> Acked-by: Uwe Hermann <[email protected]> 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, }, }; _______________________________________________ flashrom mailing list [email protected] http://www.flashrom.org/mailman/listinfo/flashrom
