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

[Code enhancements] Fix various explicitness, laziness, hard codes #8011

Merged
merged 1 commit into from Apr 12, 2020
Merged

[Code enhancements] Fix various explicitness, laziness, hard codes #8011

merged 1 commit into from Apr 12, 2020

Conversation

sampletext32
Copy link
Contributor

This PR fixes numerous code confusions.
Fixes #7997

@AniLeo AniLeo requested a review from Nekotekina April 11, 2020 17:30
@sampletext32 sampletext32 changed the title [Code enhancments] Fix various explicitness, laziness, hard codes [Code enhancements] Fix various explicitness, laziness, hard codes Apr 11, 2020
Copy link
Contributor

@elad335 elad335 left a comment

Choose a reason for hiding this comment

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

Other than the -1 thing it seems ok.

Utilities/File.cpp Outdated Show resolved Hide resolved
Utilities/File.cpp Outdated Show resolved Hide resolved
@Nekotekina
Copy link
Member

Doesn't seem like a good idea to use isdigit, because of its pitfalls (UB if outside of unsigned char range).

@sampletext32
Copy link
Contributor Author

Doesn't seem like a good idea to use isdigit, because of its pitfalls (UB if outside of unsigned char range).

This is done mostly for readability reasons. And btw, it works with std::string[indexed] value which are only basic chars. So it doesn't seem like UB for me.

rpcs3/rpcs3qt/cheat_manager.cpp Outdated Show resolved Hide resolved
rpcs3/rpcs3qt/cheat_manager.cpp Outdated Show resolved Hide resolved
@sampletext32
Copy link
Contributor Author

Offtop.
Thanks to this project, I learned how to make forks, pull requests, resolve code reviews and finally force-push.
Really appreciate your work.

@AniLeo
Copy link
Member

AniLeo commented Apr 12, 2020

You may want to squash some commits

rpcs3/rpcs3qt/cheat_manager.cpp Outdated Show resolved Hide resolved
rpcs3/rpcs3qt/cheat_manager.cpp Outdated Show resolved Hide resolved
rpcs3/Emu/CPU/CPUThread.cpp Outdated Show resolved Hide resolved
@sampletext32
Copy link
Contributor Author

You may want to squash some commits

Done

@Nekotekina Nekotekina merged commit c69691f into RPCS3:master Apr 12, 2020
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.

[Possible enhancement] Redundant check in VirtualMemory.cpp
6 participants