mirror of
https://github.com/pellepl/spiffs.git
synced 2026-06-05 21:15:18 +00:00
Update spiffs_nucleus.h
Compiler warns "integer operation result is out of range" when spiffs_obj_id is typedef'ed to 32 bit. Rewrite 1 as 1UL solves the problem.
This commit is contained in:
@@ -134,7 +134,7 @@
|
||||
// updating an object index header data only, not the table itself
|
||||
#define SPIFFS_EV_IX_UPD_HDR (4)
|
||||
|
||||
#define SPIFFS_OBJ_ID_IX_FLAG ((spiffs_obj_id)(1<<(8*sizeof(spiffs_obj_id)-1)))
|
||||
#define SPIFFS_OBJ_ID_IX_FLAG ((spiffs_obj_id)(1UL<<(8*sizeof(spiffs_obj_id)-1)))
|
||||
|
||||
#define SPIFFS_UNDEFINED_LEN (u32_t)(-1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user