Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

starboard/types.h: Replace kSbInt16Min/Max with std::numeric_limits equivalents #4177

Merged
merged 3 commits into from
Oct 1, 2024

Conversation

yell0wd0g
Copy link
Contributor

@yell0wd0g yell0wd0g commented Oct 1, 2024

As said this CL replaces kSbInt16Min/Max with their std::numeric_limits<> equivalent, and removes kSbUInt16Max entirely because it's unused.

Verified bya local x64x11 build.

[1] https://source.corp.google.com/search?q=kSb.%3FInt(16)&sq=&ss=h%2Flbshell-internal%2Fcobalt_src%2F%2B%2Frefs%2Fheads%2FCOBALT

b/366064934

@yell0wd0g yell0wd0g changed the title starboard/types.h: Remove some unused types #4168Replace kSbInt16Min/Max with their std::numeric_limits<> equivalent, … starboard/types.h: Replace kSbInt16Min/Max with std::numeric_limits equivalents Oct 1, 2024
@yell0wd0g yell0wd0g requested a review from y4vor October 1, 2024 05:21
@yell0wd0g
Copy link
Contributor Author

yell0wd0g commented Oct 1, 2024

@y4vor PTAL - should be a trivlal CL but I wasn't 100% sure whether inlining STL was the way to go (I would say it is, considering that <limits> has been there since C++11 and the types substituted here are well defined).

@datadog-cobalt-youtube
Copy link

Datadog Report

Branch report: b_366064934__B__fix_SbInt16s
Commit report: 8de28e0
Test service: cobalt

✅ 0 Failed, 228934 Passed, 42 Skipped, 38m 2.51s Total Time

@yell0wd0g yell0wd0g enabled auto-merge (squash) October 1, 2024 16:59
@yell0wd0g yell0wd0g merged commit 96e82a5 into main Oct 1, 2024
230 of 231 checks passed
@yell0wd0g yell0wd0g deleted the b_366064934__B__fix_SbInt16s branch October 1, 2024 17:31
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.

2 participants