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:
reiyawea
2020-08-23 21:09:55 +08:00
committed by GitHub
parent a8bde1ddd9
commit 4d36fde5d4
+1 -1
View File
@@ -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)