mirror of
https://github.com/fumiama/simple-protobuf.git
synced 2026-06-15 22:50:25 +08:00
优化声明
This commit is contained in:
@@ -86,7 +86,7 @@ SIMPLE_PB* read_pb_into(FILE* fp, SIMPLE_PB* spb) {
|
||||
return spb;
|
||||
}
|
||||
|
||||
int set_pb(FILE* fp, uint32_t* items_len, uint32_t struct_len, void* target) {
|
||||
int set_pb(FILE* fp, const uint32_t* items_len, uint32_t struct_len, const void* target) {
|
||||
uint32_t offset = 0;
|
||||
uint32_t i = 0;
|
||||
char* p = (char*)target;
|
||||
|
||||
Reference in New Issue
Block a user