-
Notifications
You must be signed in to change notification settings - Fork 636
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
QNTM-4876: Fix List.MaximumItem for mixed types #9012
QNTM-4876: Fix List.MaximumItem for mixed types #9012
Conversation
@@ -1399,7 +1399,7 @@ private static IList IncreaseDepth(IList list, int amt) | |||
/// </summary> | |||
private static object DoubleConverter(object obj) | |||
{ | |||
if (obj is int) | |||
if (obj is int || obj is long) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is max item the only place where the double converter is used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
doubtful
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doing a quick search in the code there are only two places in List.cs where DoubleConverter appears (other than the main class definition); MinimumItem and MaximumItem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. BTW this change is necessary after the switch from Int32 to Int64 types in DesignScript.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep yep, just curious if we should be looking for other regressions like this throughout the code base.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mjkkirschner @aparajit-pratap Take a look at QNTM-3423 and all linked issues.
LGTM - thanks @aparajit-pratap |
* fix List.MaximumItem for mixed types * add DYN graph
Purpose
Fixes Github issue: #9009
JIRA: QNTM-4876
Declarations
Check these if you believe they are true
*.resx
filesReviewers
@mjkkirschner
FYIs
@jnealb