summaryrefslogtreecommitdiff
path: root/epg.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-02-26 14:02:17 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2012-02-26 14:02:17 +0100
commitcd0f403bbc9005bfb2f9c290a6b6ab0e05d9dfb6 (patch)
tree8a76fb34cd8d9a25f1f3ebfe9df0e0018bad2ac1 /epg.h
parentaaca30f2ac1c9e7a78f05bd2c81d10a5514cba97 (diff)
downloadvdr-cd0f403bbc9005bfb2f9c290a6b6ab0e05d9dfb6.tar.gz
vdr-cd0f403bbc9005bfb2f9c290a6b6ab0e05d9dfb6.tar.bz2
Added some typecasts to silence gcc compiler warnings
Diffstat (limited to 'epg.h')
-rw-r--r--epg.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/epg.h b/epg.h
index 9d6b605b..580cbe6b 100644
--- a/epg.h
+++ b/epg.h
@@ -7,7 +7,7 @@
* Original version (as used in VDR before 1.3.0) written by
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
*
- * $Id: epg.h 2.6 2012/02/11 12:29:55 kls Exp $
+ * $Id: epg.h 2.7 2012/02/26 13:58:26 kls Exp $
*/
#ifndef __EPG_H
@@ -100,7 +100,7 @@ public:
const char *ShortText(void) const { return shortText; }
const char *Description(void) const { return description; }
const cComponents *Components(void) const { return components; }
- uchar Contents(int i = 0) const { return (0 <= i && i < MaxEventContents) ? contents[i] : 0; }
+ uchar Contents(int i = 0) const { return (0 <= i && i < MaxEventContents) ? contents[i] : uchar(0); }
int ParentalRating(void) const { return parentalRating; }
time_t StartTime(void) const { return startTime; }
time_t EndTime(void) const { return startTime + duration; }