Skip to content

Commit

Permalink
Fixed array types.
Browse files Browse the repository at this point in the history
  • Loading branch information
bbuchfink committed Jun 20, 2020
1 parent ea66b7e commit 265fc10
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@ os:
- osx

dist:
- xenial
# - trusty
# - xenial
- trusty

language: c++

#addons:
# apt:
# packages:
# - gdb
# - libclang-common-6.0-dev

arch:
- amd64
Expand Down
4 changes: 2 additions & 2 deletions src/util/hash_table.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ template<typename _V> class PHash_table
}

size_t size_;
std::unique_ptr<entry> table;
std::unique_ptr<entry[]> table;

};

Expand Down Expand Up @@ -227,7 +227,7 @@ struct PHash_set
}
}

std::unique_ptr<fp> table;
std::unique_ptr<fp[]> table;
size_t size_;

};
Expand Down
2 changes: 1 addition & 1 deletion src/util/io/input_stream_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ struct InputStreamBuffer : public StreamEntity
virtual void putback(const char* p, size_t n) override;
private:

std::unique_ptr<char> buf_;
std::unique_ptr<char[]> buf_;
size_t putback_count_;
};
2 changes: 1 addition & 1 deletion src/util/io/output_stream_buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct OutputStreamBuffer : public StreamEntity
virtual size_t tell();
private:

std::unique_ptr<char> buf_;
std::unique_ptr<char[]> buf_;
};

#endif

0 comments on commit 265fc10

Please sign in to comment.