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

WIP: Patches for clean Fedora RPM builds that pass unit tests #123

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
3 changes: 2 additions & 1 deletion libsrc/core/archive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,8 @@ namespace ngcore
(*this) & size;
if(Input())
v.resize(size);
Do(&v[0], size);
if(size > 0) // can't deref v[0] if it doesn't exist
Do(&v[0], size);
Comment on lines -228 to +229
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not just v.data() instead? Thats always valid.

Copy link
Author

Choose a reason for hiding this comment

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

Was just keeping the pattern. I'll change it.

return (*this);
}

Expand Down