Skip to content

resize_and_overwrite: fix warning C4018 - #2525

Merged
Stephan T. Lavavej (StephanTLavavej) merged 2 commits into
microsoft:mainfrom
fsb4000:fix2524
Feb 12, 2022
Merged

resize_and_overwrite: fix warning C4018#2525
Stephan T. Lavavej (StephanTLavavej) merged 2 commits into
microsoft:mainfrom
fsb4000:fix2524

Conversation

@fsb4000

@fsb4000 Igor Zhukov (fsb4000) commented Feb 7, 2022

Copy link
Copy Markdown
Contributor

Fixes #2524

cmp_less_equal is in utility

xutility includes utility

xmemory includes xutility

xstring includes xmemory

@fsb4000
Igor Zhukov (fsb4000) requested a review from a team as a code owner February 7, 2022 13:19
@cpplearner

Copy link
Copy Markdown
Contributor

cmp_less_equal doesn't work with the upcoming _Unsigned128 (#2518) though.

Co-authored-by: PowerGamer1 <PowerGamer1@users.noreply.github.com>
@StephanTLavavej Stephan T. Lavavej (StephanTLavavej) added the bug Something isn't working label Feb 7, 2022
Comment on lines +2387 to +2388
void test_gh_2524() // COMPILE-ONLY
{

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

No change requested (mega-nitpick, not worth resetting testing): This brace should be attached to the function. (clang-format would ordinarily fix this, but it's inhibited from doing so by the comment.)

@StephanTLavavej

Copy link
Copy Markdown
Member

I'm mirroring this to the MSVC-internal repo. Requesting or pushing changes is totally fine, but please notify me if that happens.

@StephanTLavavej

Copy link
Copy Markdown
Member

Thanks for fixing this warning! 🎉 😸 ✅

@fsb4000
Igor Zhukov (fsb4000) deleted the fix2524 branch February 12, 2022 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

<xstring>: resize_and_overwrite generates warning C4018 when Operation returns int

5 participants