X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fat45db%2FLogStorageP.nc;h=5938027a412af042a6d83efa23567caf91a35080;hb=388b592f85573e4096160245073ea2c1fcfa31b8;hp=0f25515822d81c4d82c98281d948f04b589b22e3;hpb=435f81f47ddc4d6b0b96a89b19e79cb0ea87dcf4;p=tinyos-2.x.git 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]() {