• Dan Winship's avatar
    gtype: fix a no-op assertion · 34e1a537
    Dan Winship authored
    g_type_class_add_private() was doing
        g_assert (node->data->instance.private_size <= 0xffff);
    but that field is a guint16, so the check was a no-op. (Noticed by
    clang, but not gcc for some reason.) Fix it to do the math in a gssize
    variable and do the bounds checking there before updating the struct
gtype.c 143 KB