From e8b62a7057025a37770797ba93171b5fb3a89d62 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jan=20Tr=C3=A1vn=C3=AD=C4=8Dek?= <jan.travnicek@fit.cvut.cz>
Date: Mon, 13 Dec 2021 23:53:17 +0100
Subject: [PATCH] std: use more precise datatype

---
 alib2str/src/core/stringApi.cpp                | 2 +-
 alib2str/src/registry/StringReaderRegistry.cpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/alib2str/src/core/stringApi.cpp b/alib2str/src/core/stringApi.cpp
index 78910e8ec8..923aa7da42 100644
--- a/alib2str/src/core/stringApi.cpp
+++ b/alib2str/src/core/stringApi.cpp
@@ -52,7 +52,7 @@ object::Object stringApi < object::Object >::parse ( ext::istream & input ) {
 		return entry.first ( input );
 	};
 
-	int pos = input.tellg();
+	std::streamoff pos = input.tellg();
 
 	auto callback = find_if ( parseFunctions ( ).begin ( ), parseFunctions ( ).end ( ), lambda );
 	if ( callback == parseFunctions ( ).end ( ) )
diff --git a/alib2str/src/registry/StringReaderRegistry.cpp b/alib2str/src/registry/StringReaderRegistry.cpp
index 19dd8f4f80..c10257a836 100644
--- a/alib2str/src/registry/StringReaderRegistry.cpp
+++ b/alib2str/src/registry/StringReaderRegistry.cpp
@@ -54,7 +54,7 @@ std::shared_ptr < abstraction::OperationAbstraction > StringReaderRegistry::getA
 
 	const auto & entries = entryIterator->second;
 
-	int pos = ss.tellg();
+	std::streamoff pos = ss.tellg();
 
 	typename ext::list < std::pair < std::function < bool ( ext::istream & ) >, std::unique_ptr < Entry > > >::const_iterator callback = find_if ( entries.begin ( ), entries.end ( ), lambda );
 	if ( callback == entries.end ( ) )
-- 
GitLab