Skip to content

Commit

Permalink
Merge pull request #12 from RandomShaper/fix_error_msvc2017
Browse files Browse the repository at this point in the history
Fix compile error on MSVC 2017
  • Loading branch information
richgel999 committed May 7, 2020
2 parents ec81d71 + d1706e3 commit aeb7d3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jpgd.cpp
Expand Up @@ -2124,7 +2124,7 @@ namespace jpgd {

int jpeg_decoder::decode_next_mcu_row()
{
if (setjmp(m_jmp_state))
if (::setjmp(m_jmp_state))
return JPGD_FAILED;

const bool chroma_y_filtering = ((m_flags & cFlagBoxChromaFiltering) == 0) && ((m_scan_type == JPGD_YH2V2) || (m_scan_type == JPGD_YH1V2));
Expand Down Expand Up @@ -3040,7 +3040,7 @@ namespace jpgd {

jpeg_decoder::jpeg_decoder(jpeg_decoder_stream* pStream, uint32_t flags)
{
if (setjmp(m_jmp_state))
if (::setjmp(m_jmp_state))
return;
decode_init(pStream, flags);
}
Expand All @@ -3053,7 +3053,7 @@ namespace jpgd {
if (m_error_code)
return JPGD_FAILED;

if (setjmp(m_jmp_state))
if (::setjmp(m_jmp_state))
return JPGD_FAILED;

decode_start();
Expand Down

0 comments on commit aeb7d3b

Please sign in to comment.