diff gui/ui/actions.c @ 36772:0da6c7ff95d2

Revise code of listMgr() command PLAYLIST_ITEM_GET_POS. Use uintptr_t type return variable. Additionally, include stdint.h.
author ib
date Mon, 17 Feb 2014 00:39:09 +0000
parents e788bcd9d49b
children 669e2f7fb150
line wrap: on
line diff
--- a/gui/ui/actions.c	Sun Feb 16 16:30:05 2014 +0000
+++ b/gui/ui/actions.c	Mon Feb 17 00:39:09 2014 +0000
@@ -21,6 +21,7 @@
  * @brief User interface actions
  */
 
+#include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
 
@@ -745,7 +746,7 @@
         if (curr) {
             uiSetFile(curr->path, curr->name, STREAMTYPE_FILE);
             guiInfo.PlaylistNext = False;
-            guiInfo.Track = (intptr_t)listMgr(PLAYLIST_ITEM_GET_POS, curr);
+            guiInfo.Track = (uintptr_t)listMgr(PLAYLIST_ITEM_GET_POS, curr);
             break;
         }
 
@@ -815,7 +816,7 @@
         if (prev) {
             uiSetFile(prev->path, prev->name, STREAMTYPE_FILE);
             guiInfo.PlaylistNext = !guiInfo.Playing;
-            guiInfo.Track = (intptr_t)listMgr(PLAYLIST_ITEM_GET_POS, prev);
+            guiInfo.Track = (uintptr_t)listMgr(PLAYLIST_ITEM_GET_POS, prev);
             break;
         }
 
@@ -883,7 +884,7 @@
         if (next) {
             uiSetFile(next->path, next->name, STREAMTYPE_FILE);
             guiInfo.PlaylistNext = !guiInfo.Playing;
-            guiInfo.Track = (intptr_t)listMgr(PLAYLIST_ITEM_GET_POS, next);
+            guiInfo.Track = (uintptr_t)listMgr(PLAYLIST_ITEM_GET_POS, next);
             break;
         }