Use static cast

Used static cast to improve initalization compatibility with MSVC2010
This commit is contained in:
Hamdi Sahloul 2015-10-09 05:10:30 +09:00
parent 4c4aae87d5
commit 4ead55c370

View file

@ -163,7 +163,7 @@ typedef pair<char*, int> Segment;
class SegmentedZeroCopyOutputStream : public io::ZeroCopyOutputStream {
public:
explicit SegmentedZeroCopyOutputStream(list<Segment> segments)
: segments_(segments), last_segment_((char*)NULL, 0), byte_count_(0) {}
: segments_(segments), last_segment_(static_cast<char*>(NULL), 0), byte_count_(0) {}
virtual bool Next(void** buffer, int* length) {
if (segments_.empty()) {