Skip to content

Correct attribute type assignment for one-column attribute selection with row and col dimensions#246

Merged
eddelbuettel merged 3 commits intomasterfrom
de/alloc_fix
May 16, 2021
Merged

Correct attribute type assignment for one-column attribute selection with row and col dimensions#246
eddelbuettel merged 3 commits intomasterfrom
de/alloc_fix

Conversation

@eddelbuettel
Copy link
Copy Markdown
Contributor

@eddelbuettel eddelbuettel commented May 16, 2021

This PR corrects a bug kindly reported vy @LTLA in this gist. In short, in the (common and key to his use) case of two (integer) dimensions and one (selected, or total) double attribute, when writing the data the buffer allocation used the wrong variable type. It was using the dimension type and not accounting for the attribute type. The change is simple and similar to what is done in other code paths. Some more detail is in CH 7493.

@eddelbuettel
Copy link
Copy Markdown
Contributor Author

Thanks. I put some more tests for this and previous PR in.

@eddelbuettel eddelbuettel merged commit 94f9991 into master May 16, 2021
@eddelbuettel eddelbuettel deleted the de/alloc_fix branch May 17, 2021 15:45
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