-
Notifications
You must be signed in to change notification settings - Fork 15
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
Matched 2.0I and 2.0J, fixed matched object count calculation #53
Conversation
src/io/leodiskinit.c
Outdated
OSPiHandle *__osDiskHandle; | ||
|
||
OSPiHandle *osLeoDiskInit() { | ||
u32 saveMask; |
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.
Hmm I think some of the code files you added used tabs intsead of 4 spaces. Not sure where they all are.
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.
Still seeing tabs in places. We may want to run a formatter.
I do think a formatter would be a good idea, but there are a lot of files in this codebase that already have tab indentation and changing those would be outside the scope of this PR. |
#ifdef _DEBUG | ||
assert(source); | ||
#if BUILD_VERSION < VERSION_J | ||
#line 74 |
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.
Isn't this redundant? This #line 74
is placed exactly in line 74, or does it apply to the very next statement?
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.
Yup #line
sets the line number of the next line, not the current one.
if (fxmix < 0) { // Not possible | ||
update->data.i = -fxmix; | ||
} else { | ||
update->data.i = fxmix; | ||
} |
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.
Maybe an ABS
macro?
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.
This is how it was in the original source, changing it to a ternary for an ABS macro breaks matching on libgultra_d.
if (fxmix < 0) { // Not possible | ||
fxmix = -fxmix; | ||
} |
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.
Same here
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.
Ditto on it breaking matching.
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.
LGTM
No description provided.