From: klueska Date: Thu, 22 May 2008 23:17:27 +0000 (+0000) Subject: Add cast to get rid of warning in gcc 4.1.2 X-Git-Tag: release_tinyos_2_1_0_0~380 X-Git-Url: https://oss.titaniummirror.com/gitweb/?p=tinyos-2.x.git;a=commitdiff_plain;h=388b592f85573e4096160245073ea2c1fcfa31b8 Add cast to get rid of warning in gcc 4.1.2 --- 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]() {