We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e70db0f + 33c3d66 commit 42042dfCopy full SHA for 42042df
FastCoder/FastCoder.m
@@ -1190,7 +1190,7 @@ + (NSData *)dataWithRootObject:(id)object
1190
1191
//set string count
1192
uint32_t stringCount = (uint32_t)[stringCache count];
1193
- [output replaceBytesInRange:NSMakeRange(sizeof(header) + sizeof(uint32_t), sizeof(uint32_t)) withBytes:&stringCount];
+ [output replaceBytesInRange:NSMakeRange(sizeof(header) + 2 * sizeof(uint32_t), sizeof(uint32_t)) withBytes:&stringCount];
1194
1195
return output;
1196
}
0 commit comments