-
Notifications
You must be signed in to change notification settings - Fork 35
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
Bringing R C++ code up to date with the main C++ code #77
Conversation
C++/straw.cpp
Outdated
@@ -494,8 +494,8 @@ map<int32_t, indexEntry> readMatrixHttp(CURL *curl, int64_t myFilePosition, cons | |||
membuf sbuf(buffer, buffer + size); | |||
istream bufin(&sbuf); | |||
|
|||
int32_t c1 = readInt32FromFile(bufin); | |||
int32_t c2 = readInt32FromFile(bufin); | |||
readInt32FromFile(bufin); |
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 not remove the variable name for future readability.
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.
That was to fix a compiler warning (CRAN doesn't allow warnings or significant notes without explanation). How about we keep it as an inline comment, e.g. /* int32_t c1 = */ readInt32FromFile(bufin);
?
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.
@sa501428 Does the latest commit satisfy your concern?
Apologies, I forgot to reply.
Can we basically leave the python/C versions with the variable and just do
the removal of those variables in the R wrapper version?
- Muhammad Saad Shamim <http://mshamim.com/>
…On Tue, Jun 22, 2021 at 9:54 AM Craig Wenger ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In C++/straw.cpp
<#77 (comment)>:
> @@ -494,8 +494,8 @@ map<int32_t, indexEntry> readMatrixHttp(CURL *curl, int64_t myFilePosition, cons
membuf sbuf(buffer, buffer + size);
istream bufin(&sbuf);
- int32_t c1 = readInt32FromFile(bufin);
- int32_t c2 = readInt32FromFile(bufin);
+ readInt32FromFile(bufin);
@sa501428 <https://github.com/sa501428> Does the latest commit satisfy
your concern?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#77 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABRT23MF6K2FQZ2O6P7KCDDTUCP2JANCNFSM466GBOEA>
.
|
@sa501428 Absolutely; done in the latest commit. |
No description provided.