Closed sharwell closed 4 years ago
I agree that this comment is bogus and should be removed.
I'm happy to remove/revise those comments and assertions as part of that PR - no skin off my nose either way - but: this is my first coreclr PR: what is the usual process in the case of such a question / decision?
Minor clarification: it is DoubleToInt64Bits
etc
@mgravell I understand why you implemented your pull request the way you did, and believe it makes sense. This issue is meant to formalize the request to alter the original definitions so you can more comfortably remove them from yours as well. :smile:
Similar to the comments highlighted in dotnet/coreclr#833, the
BitConverter.DoubleToInt32Bits
andInt32BitsToDouble
methods contain endianness comments which are almost certainly irrelevant.Contract.Assert
call is not there.I recommend these comments as well as the calls to
Contract.Assert
be removed, and the documentation updated to explicitly include the following text (or an equivalent variant) stating a precondition that has always existed but was previously undocumented.