2
0
mirror of https://github.com/boostorg/mpi.git synced 2026-01-19 04:22:10 +00:00

Merge branch 'fix_buffer_primitive_load_save' of github.com:maksim-0/mpi into maksim-0-fix_buffer_primitive_load_save

This commit is contained in:
Alain Miniussi
2022-06-02 14:12:43 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ public:
#endif
s.resize(l);
// note breaking a rule here - could be a problem on some platform
load_impl(const_cast<char *>(s.data()),l);
load_impl(const_cast<CharType *>(s.data()), l*sizeof(CharType));
}
private:

View File

@@ -89,7 +89,7 @@ public:
{
unsigned int l = static_cast<unsigned int>(s.size());
save(l);
save_impl(s.data(),s.size());
save_impl(s.data(),s.size()*sizeof(CharType));
}
private: