summaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'common.c')
-rw-r--r--common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/common.c b/common.c
index fff0013..e6c2113 100644
--- a/common.c
+++ b/common.c
@@ -70,8 +70,8 @@ GLCD::cType DurationType(int Index, const std::string &Format)
enum { normal, format } state = normal;
int n = 0;
#if VDRVERSNUM >= 10701
- int f = (Index % DEFAULTFRAMESPERSECOND) + 1;
- int s = (Index / DEFAULTFRAMESPERSECOND);
+ int f = (Index % (int)DEFAULTFRAMESPERSECOND) + 1;
+ int s = (Index / (int)DEFAULTFRAMESPERSECOND);
#else
int f = (Index % FRAMESPERSEC) + 1;
int s = (Index / FRAMESPERSEC);