Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Fix Vector2 warning #22

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Open

Fix Vector2 warning #22

wants to merge 9 commits into from

Conversation

kryr34
Copy link
Contributor

@kryr34 kryr34 commented Apr 17, 2023

  • Set Debug TreatWarningAsError back to true.
  • Fix warning C4244: 'argument': conversion from 'T' to 'T', possible loss of data in Vector2

kryr34 and others added 4 commits April 17, 2023 12:22
remove precompileedHeader condition
idk but maybe work
@kryr34 kryr34 added the wontfix This will not be worked on label Apr 17, 2023
@kryr34 kryr34 changed the title Create msbuild.yml Try to fix warning and Release Apr 17, 2023
@kryr34 kryr34 added the help wanted Extra attention is needed label Apr 17, 2023
@kryr34 kryr34 requested a review from NOOBDY April 19, 2023 05:13
@kryr34 kryr34 removed help wanted Extra attention is needed wontfix This will not be worked on labels Apr 19, 2023
@kryr34 kryr34 changed the title Try to fix warning and Release Fix Vector2 warning Apr 19, 2023
.github/workflows/msbuild.yml Outdated Show resolved Hide resolved
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not const Vector2<T>& other

Copy link
Contributor Author

Choose a reason for hiding this comment

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

for Vector2<int> + Vector2<float>

Copy link
Collaborator

@NOOBDY NOOBDY Apr 19, 2023

Choose a reason for hiding this comment

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

so this means the warning is valid and I don't think you should be doing type conversions in the function

Copy link
Contributor Author

Choose a reason for hiding this comment

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

so I should do conversion before operation?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think would do it this way if I were writing this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@kryr34 kryr34 closed this Apr 19, 2023
@kryr34 kryr34 reopened this Apr 19, 2023
* Set `Debug TreatWarningAsError` to `true`.
* Make sure that Github Action builds using `Debug` mode instead of `Release` mode."
* Condition of precompile
@kryr34 kryr34 added the bug Something isn't working label Apr 19, 2023
@kryr34 kryr34 mentioned this pull request Apr 19, 2023
@kryr34 kryr34 added the wontfix This will not be worked on label May 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants