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

Bringing R C++ code up to date with the main C++ code #77

Merged
merged 10 commits into from
Jun 22, 2021

Conversation

cwenger
Copy link
Collaborator

@cwenger cwenger commented Jun 18, 2021

No description provided.

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);
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 not remove the variable name for future readability.

Copy link
Collaborator Author

@cwenger cwenger Jun 18, 2021

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);?

Copy link
Collaborator Author

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?

@sa501428
Copy link
Member

sa501428 commented Jun 22, 2021 via email

@cwenger
Copy link
Collaborator Author

cwenger commented Jun 22, 2021

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.

@sa501428 sa501428 merged commit 1f26833 into aidenlab:master Jun 22, 2021
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