X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/27507b618a95cadb13f2fe7de82ced67d059077a..ccb5db57cdb1766eefb7023dda50ede9f0d01f78:/src/richtext/richtexthtml.cpp diff --git a/src/richtext/richtexthtml.cpp b/src/richtext/richtexthtml.cpp index 2332664d18..4326e33e15 100644 --- a/src/richtext/richtexthtml.cpp +++ b/src/richtext/richtexthtml.cpp @@ -556,7 +556,7 @@ wxChar* wxRichTextHTMLHandler::b64enc( unsigned char* input, size_t in_len ) *p++ = enc64[ (a >> 2) & 0x3f ]; - if( in_len-- <= 0 ) + if( in_len-- == 0 ) { *p++ = enc64[ (a << 4 ) & 0x30 ]; *p++ = '='; @@ -568,7 +568,7 @@ wxChar* wxRichTextHTMLHandler::b64enc( unsigned char* input, size_t in_len ) *p++ = enc64[(( a << 4 ) | ((b >> 4) &0xf )) & 0x3f]; - if( in_len-- <= 0 ) + if( in_len-- == 0 ) { *p++ = enc64[ (b << 2) & 0x3f ]; *p++ = '=';