From 48446c86ff80aa5bf68414ad97d264a113815240 Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 6 Sep 2011 18:17:02 +0000 Subject: Fix linux_spi.c build on 32bit systems Corresponding to flashrom svn r1428. Signed-off-by: Uwe Hermann Acked-by: Uwe Hermann --- linux_spi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'linux_spi.c') diff --git a/linux_spi.c b/linux_spi.c index fa6ec17..d120754 100644 --- a/linux_spi.c +++ b/linux_spi.c @@ -107,11 +107,11 @@ static int linux_spi_send_command(unsigned int writecnt, unsigned int readcnt, { 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, }, }; -- cgit v1.1