-
-
Notifications
You must be signed in to change notification settings - Fork 852
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
Use explicit types #2855
base: main
Are you sure you want to change the base?
Use explicit types #2855
Conversation
95b56d3
to
dfa0188
Compare
I had to install libgdiplus for ubuntu-latest. it seems it was changed from ubuntu 22-04 to 24-04 in the last days |
@@ -470,8 +470,8 @@ private static void ClampImpl<T>(Span<T> span, T min, T max) | |||
where T : unmanaged | |||
{ | |||
ref T sRef = ref MemoryMarshal.GetReference(span); | |||
var vmin = new Vector<T>(min); | |||
var vmax = new Vector<T>(max); | |||
Vector<T> vmin = new Vector<T>(min); |
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.
Let's make sure we use target -typed-new expressions where possible.
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.
ok gonna look into configuring it and then change all places
2fb6d7a
to
963166b
Compare
963166b
to
9be1ec9
Compare
Use explicit type instead of var.
Now only this is changed not as in #2803 where some more things were changed and Stylecop was not happy with it