]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Add cast to get rid of warning in gcc 4.1.2
authorklueska <klueska>
Thu, 22 May 2008 23:17:27 +0000 (23:17 +0000)
committerklueska <klueska>
Thu, 22 May 2008 23:17:27 +0000 (23:17 +0000)
tos/chips/at45db/LogStorageP.nc

index 0f25515822d81c4d82c98281d948f04b589b22e3..5938027a412af042a6d83efa23567caf91a35080 100644 (file)
@@ -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]() {