Skip to content

Commit

Permalink
Build fixes for newer compilers (#113)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Laub authored and YangleiZouIntel committed Jan 14, 2021
1 parent 5f8bb31 commit 8eeb4a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inference-engine/src/readers/reader_api/ie_blob_stream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ InferenceEngine::details::BlobStream::BlobBuffer::~BlobBuffer() {}

std::streampos InferenceEngine::details::BlobStream::BlobBuffer::seekpos(std::streampos sp, std::ios_base::openmode which) {
if (!(which & ios_base::in))
return streampos(-1);
return std::streampos(-1);
if (sp < 0 || sp > egptr() - eback())
return streampos(-1);
return std::streampos(-1);
setg(eback(), eback() + sp, egptr());
return sp;
}
std::streampos InferenceEngine::details::BlobStream::BlobBuffer::seekoff(std::streamoff off, std::ios_base::seekdir way, std::ios_base::openmode which) {
if (!(which & std::ios_base::in))
return streampos(-1);
return std::streampos(-1);
switch (way) {
default:
case std::ios_base::beg:
Expand Down

0 comments on commit 8eeb4a9

Please sign in to comment.