Skip to content

Commit

Permalink
Fix [-Wsign-compare] for mingw D2D header.
Browse files Browse the repository at this point in the history
  • Loading branch information
zufuliu committed Jan 23, 2024
1 parent 5eca91d commit 77da98c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scintilla/lexers/LexRust.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ enum {
};
//KeywordIndex--Autogenerated -- end of section automatically generated

enum KeywordType {
enum class KeywordType {
None = SCE_RUST_DEFAULT,
Struct = SCE_RUST_STRUCT,
Trait = SCE_RUST_TRAIT,
Expand Down
2 changes: 1 addition & 1 deletion scintilla/win32/ScintillaWin.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1075,7 +1075,7 @@ bool ScintillaWin::PaintDC(HDC hdc) {
Paint(surfaceWindow, rcPaint);
surfaceWindow->Release();
const HRESULT hr = pRenderTarget->EndDraw();
if (hr == D2DERR_RECREATE_TARGET) {
if (hr == static_cast<HRESULT>(D2DERR_RECREATE_TARGET)) {
DropRenderTarget();
return false;
}
Expand Down

0 comments on commit 77da98c

Please sign in to comment.