Fix division by zero bug triggered by pointers to opaque structs.

main
thebeing 16 years ago
parent f54132293b
commit e36200bb8b

@ -113,6 +113,11 @@ static void parse_struct(const char **type, type_parser callback, void *context)
inline static void round_up(size_t *v, size_t b)
{
if (0 == b)
{
return;
}
if (*v % b)
{
*v += b - (*v % b);

Loading…
Cancel
Save