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

Removed the double free in ezc3d class #203

Merged
merged 2 commits into from
Jun 1, 2021
Merged

Conversation

pariterre
Copy link
Member

No description provided.

@codecov
Copy link

codecov bot commented Jun 1, 2021

Codecov Report

Merging #203 (f2a9962) into dev (e607668) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev     #203      +/-   ##
==========================================
- Coverage   84.57%   84.55%   -0.02%     
==========================================
  Files          43       44       +1     
  Lines        5522     5515       -7     
==========================================
- Hits         4670     4663       -7     
  Misses        852      852              
Impacted Files Coverage Δ
examples/create_and_read_example.cpp 0.00% <ø> (ø)
examples/force_plate_example.cpp 0.00% <ø> (ø)
examples/modify_c3d_example.cpp 0.00% <ø> (ø)
include/ezc3d.h 100.00% <ø> (ø)
src/ezc3d.cpp 96.44% <100.00%> (-0.05%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e607668...f2a9962. Read the comment docs.

@pariterre pariterre merged commit 5723030 into pyomeca:dev Jun 1, 2021
Comment on lines +201 to +204
std::vector<char>(c_float); ///< Char to be used by the read function with the specific size of a float preventing to allocate it at each calls
std::vector<char>(c_float_tp); ///< Char to be used by the read function with the specific size of a float preventing to allocate it at each calls (allow for copy of c_float)
std::vector<char>(c_int); ///< Char to be used by the read function with the specific size of a int preventing to allocate it at each calls
std::vector<char>(c_int_tp); ///< Char to be used by the read function with the specific size of a int preventing to allocate it at each calls (allow for copy of c_int)
Copy link
Contributor

Choose a reason for hiding this comment

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

The parantheses are not needed. Actually, they throw warnings on my compiler with my flags:

include/ezc3d.h:201:22: warning: unnecessary parentheses in declaration of 'c_float' [-Wparentheses]
     std::vector<char>(c_float); ///< Char to be used by the read function with the specific size of a float preventing to allocate it at each calls

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.

None yet

2 participants