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

Use explicit types #2855

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

stefannikolei
Copy link
Contributor

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

@stefannikolei
Copy link
Contributor Author

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);
Copy link
Member

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.

Copy link
Contributor Author

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

@stefannikolei stefannikolei force-pushed the sn/use_explicit_types branch 2 times, most recently from 2fb6d7a to 963166b Compare January 30, 2025 12:40
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