diff options
author | Chris Robinson <[email protected]> | 2018-11-06 18:55:00 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-11-06 18:55:00 -0800 |
commit | d76e9800dabcb1142be2daf69875e165a6da36ed (patch) | |
tree | d0c8458f9e10edc33984beffb5bfc631a165474c /Alc/ambdec.cpp | |
parent | 3b664041bab1e87af4831ddbe23960e44c4acfbc (diff) |
Use a more appropriate type for the result of tellg
Diffstat (limited to 'Alc/ambdec.cpp')
-rw-r--r-- | Alc/ambdec.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Alc/ambdec.cpp b/Alc/ambdec.cpp index 306b942b..088d4a85 100644 --- a/Alc/ambdec.cpp +++ b/Alc/ambdec.cpp @@ -104,7 +104,7 @@ bool load_ambdec_speakers(AmbDecConf *conf, std::istream &f, std::string &buffer } istr.clear(); - std::streamsize endpos{istr.tellg()}; + std::istream::pos_type endpos{istr.tellg()}; if(!is_at_end(buffer, endpos)) { ERR("Unexpected junk on line: %s\n", buffer.c_str()+endpos); @@ -183,7 +183,7 @@ bool load_ambdec_matrix(ALfloat *gains, ALfloat (*matrix)[MAX_AMBI_COEFFS], ALsi } istr.clear(); - std::streamsize endpos{istr.tellg()}; + std::istream::pos_type endpos{istr.tellg()}; if(!is_at_end(buffer, endpos)) { ERR("Unexpected junk on line: %s\n", buffer.c_str()+endpos); @@ -315,7 +315,7 @@ int AmbDecConf::load(const char *fname) } else if(command == "/speakers/{") { - std::streamsize endpos{istr.tellg()}; + std::istream::pos_type endpos{istr.tellg()}; if(!is_at_end(buffer, endpos)) { ERR("Unexpected junk on line: %s\n", buffer.c_str()+endpos); @@ -342,7 +342,7 @@ int AmbDecConf::load(const char *fname) } else if(command == "/lfmatrix/{" || command == "/hfmatrix/{" || command == "/matrix/{") { - std::streamsize endpos{istr.tellg()}; + std::istream::pos_type endpos{istr.tellg()}; if(!is_at_end(buffer, endpos)) { ERR("Unexpected junk on line: %s\n", buffer.c_str()+endpos); @@ -395,7 +395,7 @@ int AmbDecConf::load(const char *fname) } else if(command == "/end") { - std::streamsize endpos{istr.tellg()}; + std::istream::pos_type endpos{istr.tellg()}; if(!is_at_end(buffer, endpos)) { ERR("Unexpected junk on end: %s\n", buffer.c_str()+endpos); @@ -411,7 +411,7 @@ int AmbDecConf::load(const char *fname) } istr.clear(); - std::streamsize endpos{istr.tellg()}; + std::istream::pos_type endpos{istr.tellg()}; if(!is_at_end(buffer, endpos)) { ERR("Unexpected junk on line: %s\n", buffer.c_str()+endpos); |