From 2b49713fe6c3739f3833c37a6fec9fc9c4d1fb0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Do=C4=9Fa=20Oru=C3=A7?= <25724155+aeris170@users.noreply.github.com> Date: Sat, 11 Oct 2025 06:01:42 +0100 Subject: [PATCH] Fix C4267 with static_cast --- TextEditor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TextEditor.h b/TextEditor.h index 19ad61bd..9f0f0794 100644 --- a/TextEditor.h +++ b/TextEditor.h @@ -43,7 +43,7 @@ class IMGUI_API TextEditor inline bool IsShowLineNumbersEnabled() const { return mShowLineNumbers; } inline void SetShortTabsEnabled(bool aValue) { mShortTabs = aValue; } inline bool IsShortTabsEnabled() const { return mShortTabs; } - inline int GetLineCount() const { return mLines.size(); } + inline int GetLineCount() const { return static_cast(mLines.size()); } void SetPalette(PaletteId aValue); PaletteId GetPalette() const { return mPaletteId; } void SetLanguageDefinition(LanguageDefinitionId aValue);