From 388b592f85573e4096160245073ea2c1fcfa31b8 Mon Sep 17 00:00:00 2001 From: klueska Date: Thu, 22 May 2008 23:17:27 +0000 Subject: [PATCH] Add cast to get rid of warning in gcc 4.1.2 --- tos/chips/at45db/LogStorageP.nc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tos/chips/at45db/LogStorageP.nc b/tos/chips/at45db/LogStorageP.nc index 0f255158..5938027a 100644 --- a/tos/chips/at45db/LogStorageP.nc +++ b/tos/chips/at45db/LogStorageP.nc @@ -382,7 +382,7 @@ implementation } command error_t LogRead.seek[uint8_t id](storage_cookie_t offset) { - return newRequest(R_SEEK, id, (void *)(offset >> 16), offset); + return newRequest(R_SEEK, id, (void *)((uint16_t)(offset >> 16)), offset); } command storage_len_t LogRead.getSize[uint8_t id]() { -- 2.39.2