Created
March 28, 2019 21:47
-
-
Save neheb/5e340598e2e9c31939a3570d106816aa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/block.h | |
+++ b/block.h | |
@@ -34,6 +34,7 @@ class Block | |
{ if( size_ < 0 || size_ > LLONG_MAX - pos_ ) size_ = LLONG_MAX - pos_; } | |
public: | |
+ Block() {} // default constructor | |
Block( const long long p, const long long s ) : pos_( p ), size_( s ) | |
{ if( p < 0 ) { pos_ = 0; if( s > 0 ) size_ -= std::min( s, -p ); } | |
fix_size(); } | |
@@ -102,6 +103,7 @@ private: | |
Status status_; | |
public: | |
+ Sblock() {} // default constructor | |
Sblock( const Block & b, const Status st ) | |
: Block( b ), status_( st ) {} | |
Sblock( const long long p, const long long s, const Status st ) | |
--- a/mapbook.cc | |
+++ b/mapbook.cc | |
@@ -19,6 +19,7 @@ | |
#include <algorithm> | |
#include <cerrno> | |
+#include <cctype> | |
#include <climits> | |
#include <cstdio> | |
#include <cstdlib> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment