mirror of
https://github.com/boostorg/serialization.git
synced 2026-01-24 06:22:08 +00:00
Fixed warnings at highest warning level
[SVN r57698]
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
|
||||
// should pass compilation and execution
|
||||
|
||||
#include <cstdlib> // for rand(), NULL
|
||||
#include <cstdlib> // for rand(), NULL, size_t
|
||||
|
||||
#include <fstream>
|
||||
#include <boost/config.hpp>
|
||||
@@ -48,7 +48,7 @@ public:
|
||||
A::A(){
|
||||
int i = sizeof(data);
|
||||
while(i-- > 0)
|
||||
data[i] = 0xff & std::rand();
|
||||
data[i] = static_cast<char>(0xff & std::rand());
|
||||
}
|
||||
|
||||
bool A::operator==(const A & rhs) const {
|
||||
|
||||
Reference in New Issue
Block a user