pixelomer / AltDeploy

IPA sideloader based on AltServer
654 stars 116 forks source link

It is highly recomended to use sizeof() instead of single number #24

Open EmilioSchi opened 4 years ago

EmilioSchi commented 4 years ago

Because different architectures may have different dimension of variable. This line can be: WRITE_16(header + sizeof(unsigned int), version);

Or you can use with specifics type.

https://github.com/pixelomer/AltDeploy/blob/760e079e430eb16961cde540f37123445525a5be/minizip/mztools.c#L143