Ticket #52720: abiword-jpeg-patch.diff

File abiword-jpeg-patch.diff, 876 bytes (added by Crosmatron, 8 years ago)

abiword patch to fix ut_jpeg.cpp

  • src/af/util/xp/ut_jpeg.cpp

    old new  
    102102        src->pub.next_input_byte = src->sourceBuf->getPointer (src->pos);
    103103        src->pub.bytes_in_buffer = src->sourceBuf->getLength ();
    104104       
    105         return TRUE;
     105        return (boolean)true;
    106106}
    107107
    108108/*
     
    161161        /* set the data source */
    162162        _JPEG_ByteBufSrc (&cinfo, pBB);
    163163
    164         jpeg_read_header(&cinfo, TRUE);
     164        jpeg_read_header(&cinfo, (boolean)true);
    165165        jpeg_start_decompress(&cinfo);
    166166    iImageWidth = cinfo.output_width;
    167167    iImageHeight = cinfo.output_height;
     
    189189        /* set the data source */
    190190        _JPEG_ByteBufSrc (&cinfo, pBB);
    191191
    192         jpeg_read_header(&cinfo, TRUE);
     192        jpeg_read_header(&cinfo, (boolean)true);
    193193        jpeg_start_decompress(&cinfo);
    194194   
    195195        int row_stride = cinfo.output_width * cinfo.output_components;