Răsfoiți Sursa

movies: fix another streampos comparison error in VC2015

rdb 6 ani în urmă
părinte
comite
71eaa65e4e
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      panda/src/movies/opusAudioCursor.cxx

+ 1 - 1
panda/src/movies/opusAudioCursor.cxx

@@ -194,7 +194,7 @@ seek(double t) {
   // be able to explicitly seek to the beginning of the file and call op_open
   // again.  This allows looping compressed .opus files.
   if (error == OP_ENOSEEK && sample == 0) {
-    if (_stream->rdbuf()->pubseekpos(0, std::ios::in) == 0) {
+    if (_stream->rdbuf()->pubseekpos(0, std::ios::in) == (std::streampos)0) {
       OggOpusFile *op = op_open_callbacks((void *)_stream, &callbacks, nullptr, 0, nullptr);
       if (op != nullptr) {
         op_free(_op);