Skip to content

Fix C4267 by changing return type#38

Open
aeris170 wants to merge 1 commit intosantaclose:masterfrom
NeoDoa-Collective:fix-c4267-2
Open

Fix C4267 by changing return type#38
aeris170 wants to merge 1 commit intosantaclose:masterfrom
NeoDoa-Collective:fix-c4267-2

Conversation

@aeris170
Copy link

Fixes #36

inline void SetShortTabsEnabled(bool aValue) { mShortTabs = aValue; }
inline bool IsShortTabsEnabled() const { return mShortTabs; }
inline int GetLineCount() const { return mLines.size(); }
inline size_t GetLineCount() const { return mLines.size(); }
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i agree that we don't want the warning, does it also go away if you use unsigned int ? would prefer that over size_t

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No it doesn't. size_t is 64bits on win64 while unsigned int is 32bits.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

C4267 warning when using MSVC

2 participants