@@ -311,14 +311,14 @@ gpujpeg_table_huffman_encoder_init(struct gpujpeg_table_huffman_encoder* table,
311311{
312312 assert (comp_type == GPUJPEG_COMPONENT_LUMINANCE || comp_type == GPUJPEG_COMPONENT_CHROMINANCE );
313313 assert (huff_type == GPUJPEG_HUFFMAN_DC || huff_type == GPUJPEG_HUFFMAN_AC );
314- _Static_assert (sizeof (table -> bits ) >= sizeof (gpujpeg_table_huffman_y_dc_bits ), "table buffer too small" );
315- _Static_assert (sizeof (table -> huffval ) >= sizeof (gpujpeg_table_huffman_y_dc_value ), "table buffer too small" );
316- _Static_assert (sizeof (table -> bits ) >= sizeof (gpujpeg_table_huffman_y_ac_bits ), "table buffer too small" );
317- _Static_assert (sizeof (table -> huffval ) >= sizeof (gpujpeg_table_huffman_y_ac_value ), "table buffer too small" );
318- _Static_assert (sizeof (table -> bits ) >= sizeof (gpujpeg_table_huffman_cbcr_dc_bits ), "table buffer too small" );
319- _Static_assert (sizeof (table -> huffval ) >= sizeof (gpujpeg_table_huffman_cbcr_dc_value ), "table buffer too small" );
320- _Static_assert (sizeof (table -> bits ) >= sizeof (gpujpeg_table_huffman_cbcr_ac_bits ), "table buffer too small" );
321- _Static_assert (sizeof (table -> huffval ) >= sizeof (gpujpeg_table_huffman_cbcr_ac_value ), "table buffer too small" );
314+ static_assert (sizeof (table -> bits ) >= sizeof (gpujpeg_table_huffman_y_dc_bits ), "table buffer too small" );
315+ static_assert (sizeof (table -> huffval ) >= sizeof (gpujpeg_table_huffman_y_dc_value ), "table buffer too small" );
316+ static_assert (sizeof (table -> bits ) >= sizeof (gpujpeg_table_huffman_y_ac_bits ), "table buffer too small" );
317+ static_assert (sizeof (table -> huffval ) >= sizeof (gpujpeg_table_huffman_y_ac_value ), "table buffer too small" );
318+ static_assert (sizeof (table -> bits ) >= sizeof (gpujpeg_table_huffman_cbcr_dc_bits ), "table buffer too small" );
319+ static_assert (sizeof (table -> huffval ) >= sizeof (gpujpeg_table_huffman_cbcr_dc_value ), "table buffer too small" );
320+ static_assert (sizeof (table -> bits ) >= sizeof (gpujpeg_table_huffman_cbcr_ac_bits ), "table buffer too small" );
321+ static_assert (sizeof (table -> huffval ) >= sizeof (gpujpeg_table_huffman_cbcr_ac_value ), "table buffer too small" );
322322
323323 if ( comp_type == GPUJPEG_COMPONENT_LUMINANCE ) {
324324 if ( huff_type == GPUJPEG_HUFFMAN_DC ) {
@@ -348,14 +348,14 @@ gpujpeg_table_huffman_decoder_init(struct gpujpeg_table_huffman_decoder* table,
348348{
349349 assert (comp_type == GPUJPEG_COMPONENT_LUMINANCE || comp_type == GPUJPEG_COMPONENT_CHROMINANCE );
350350 assert (huff_type == GPUJPEG_HUFFMAN_DC || huff_type == GPUJPEG_HUFFMAN_AC );
351- _Static_assert (sizeof (table -> bits ) >= sizeof (gpujpeg_table_huffman_y_dc_bits ), "table buffer too small" );
352- _Static_assert (sizeof (table -> huffval ) >= sizeof (gpujpeg_table_huffman_y_dc_value ), "table buffer too small" );
353- _Static_assert (sizeof (table -> bits ) >= sizeof (gpujpeg_table_huffman_y_ac_bits ), "table buffer too small" );
354- _Static_assert (sizeof (table -> huffval ) >= sizeof (gpujpeg_table_huffman_y_ac_value ), "table buffer too small" );
355- _Static_assert (sizeof (table -> bits ) >= sizeof (gpujpeg_table_huffman_cbcr_dc_bits ), "table buffer too small" );
356- _Static_assert (sizeof (table -> huffval ) >= sizeof (gpujpeg_table_huffman_cbcr_dc_value ), "table buffer too small" );
357- _Static_assert (sizeof (table -> bits ) >= sizeof (gpujpeg_table_huffman_cbcr_ac_bits ), "table buffer too small" );
358- _Static_assert (sizeof (table -> huffval ) >= sizeof (gpujpeg_table_huffman_cbcr_ac_value ), "table buffer too small" );
351+ static_assert (sizeof (table -> bits ) >= sizeof (gpujpeg_table_huffman_y_dc_bits ), "table buffer too small" );
352+ static_assert (sizeof (table -> huffval ) >= sizeof (gpujpeg_table_huffman_y_dc_value ), "table buffer too small" );
353+ static_assert (sizeof (table -> bits ) >= sizeof (gpujpeg_table_huffman_y_ac_bits ), "table buffer too small" );
354+ static_assert (sizeof (table -> huffval ) >= sizeof (gpujpeg_table_huffman_y_ac_value ), "table buffer too small" );
355+ static_assert (sizeof (table -> bits ) >= sizeof (gpujpeg_table_huffman_cbcr_dc_bits ), "table buffer too small" );
356+ static_assert (sizeof (table -> huffval ) >= sizeof (gpujpeg_table_huffman_cbcr_dc_value ), "table buffer too small" );
357+ static_assert (sizeof (table -> bits ) >= sizeof (gpujpeg_table_huffman_cbcr_ac_bits ), "table buffer too small" );
358+ static_assert (sizeof (table -> huffval ) >= sizeof (gpujpeg_table_huffman_cbcr_ac_value ), "table buffer too small" );
359359
360360 if ( comp_type == GPUJPEG_COMPONENT_LUMINANCE ) {
361361 if ( huff_type == GPUJPEG_HUFFMAN_DC ) {
0 commit comments