Ver Fonte

remove warnings

richarddobson há 2 anos atrás
pai
commit
0dcd5c37f0
1 ficheiros alterados com 3 adições e 2 exclusões
  1. 3 2
      dev/externals/paprogs/pvplay/pvthreads.cpp

+ 3 - 2
dev/externals/paprogs/pvplay/pvthreads.cpp

@@ -1,6 +1,6 @@
 
 
 /*
 /*
- * Copyright (c) 1983-2020 Richard Dobson and Composers Desktop Project Ltd
+ * Copyright (c) 1983-2023 Richard Dobson and Composers Desktop Project Ltd
  * http://www.rwdobson.com
  * http://www.rwdobson.com
  * http://www.composersdesktop.com
  * http://www.composersdesktop.com
  * This file is part of the CDP System.
  * This file is part of the CDP System.
@@ -214,7 +214,8 @@ unsigned int __stdcall threadFunctionReadFromAnalFile(void* ptr)
             
             
             if (file_playing)  {
             if (file_playing)  {
                 /* find out where we are ... */
                 /* find out where we are ... */
-                long framepos1 = sndtellEx(pdata->ifd) / pdata->anal_framesize;
+                // unsigned: we have to trust no error from sndtellEx!
+                unsigned long framepos1 = (unsigned long) (sndtellEx(pdata->ifd) / pdata->anal_framesize);
                 
                 
                 for(i = 0;i < framestoget;i++){ 
                 for(i = 0;i < framestoget;i++){ 
                     /* read one frame*/
                     /* read one frame*/