mirror of
https://github.com/boostorg/mpi.git
synced 2026-01-19 04:22:10 +00:00
Fix buffer primitive load and save for CharType != char
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user