diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-02-26 14:02:17 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-02-26 14:02:17 +0100 |
commit | cd0f403bbc9005bfb2f9c290a6b6ab0e05d9dfb6 (patch) | |
tree | 8a76fb34cd8d9a25f1f3ebfe9df0e0018bad2ac1 /epg.h | |
parent | aaca30f2ac1c9e7a78f05bd2c81d10a5514cba97 (diff) | |
download | vdr-cd0f403bbc9005bfb2f9c290a6b6ab0e05d9dfb6.tar.gz vdr-cd0f403bbc9005bfb2f9c290a6b6ab0e05d9dfb6.tar.bz2 |
Added some typecasts to silence gcc compiler warnings
Diffstat (limited to 'epg.h')
-rw-r--r-- | epg.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |