Skip to content

(MQ cleanup) Remove size_t from managed Brotli code#44043

Merged
stephentoub merged 2 commits intodotnet:masterfrom
GrabYourPitchforks:mq_brotli
Nov 2, 2020
Merged

(MQ cleanup) Remove size_t from managed Brotli code#44043
stephentoub merged 2 commits intodotnet:masterfrom
GrabYourPitchforks:mq_brotli

Conversation

@GrabYourPitchforks
Copy link
Member

This replaces our custom size_t definition on the managed Brotli side with nuint. There's also a little bit of cleanup, adding calls to Debug.Assert and using discards where appropriate.

n.b. I'm using nuint instead of nint as a size_t replacement. This more closely matches that size_t is interpreted as an unsigned value.

Co-authored-by: Stephen Toub <stoub@microsoft.com>
@EgorBo
Copy link
Member

EgorBo commented Oct 30, 2020

@GrabYourPitchforks @stephentoub btw, maybe worth updating Brotli (1.0.7) to 1.0.9 (the latest google release)?

Copy link
Contributor

@carlossanlop carlossanlop left a comment

Choose a reason for hiding this comment

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

LGTM.

@stephentoub stephentoub merged commit ecd979c into dotnet:master Nov 2, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants