diff options
| author | Andreas Oberritter <obi@opendreambox.org> | 2010-03-31 18:45:47 +0200 |
|---|---|---|
| committer | Andreas Oberritter <obi@opendreambox.org> | 2010-04-26 12:28:25 +0200 |
| commit | e30f6f65d97d751e8e9a45171f7806737b4ecc41 (patch) | |
| tree | 172e0be3fc1b773e4b39ffdb71fa9a15e5ba4871 /lib | |
| parent | a2ef0a242972e70e4229441ea94f7712fcf66aff (diff) | |
| download | enigma2-e30f6f65d97d751e8e9a45171f7806737b4ecc41.tar.gz enigma2-e30f6f65d97d751e8e9a45171f7806737b4ecc41.zip | |
add missing parentheses
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/dvb/dvbtime.cpp | 2 | ||||
| -rw-r--r-- | lib/dvb/epgcache.cpp | 2 | ||||
| -rw-r--r-- | lib/gdi/font.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/lib/dvb/dvbtime.cpp b/lib/dvb/dvbtime.cpp index bb6b94b0..26b6767c 100644 --- a/lib/dvb/dvbtime.cpp +++ b/lib/dvb/dvbtime.cpp @@ -111,7 +111,7 @@ void TDT::ready(int error) int TDT::createTable(unsigned int nr, const __u8 *data, unsigned int max) { - if ( data && data[0] == 0x70 || data[0] == 0x73 ) + if ( data && (data[0] == 0x70 || data[0] == 0x73 )) { int length = ((data[1] & 0x0F) << 8) | data[2]; if ( length >= 5 ) diff --git a/lib/dvb/epgcache.cpp b/lib/dvb/epgcache.cpp index aee596ac..119223a3 100644 --- a/lib/dvb/epgcache.cpp +++ b/lib/dvb/epgcache.cpp @@ -1457,7 +1457,7 @@ void eEPGCache::channel_data::readData( const __u8 *data) } tidMap &seenSections = this->seenSections[map]; tidMap &calcedSections = this->calcedSections[map]; - if ( state == 1 && calcedSections == seenSections || state > 1 ) + if ( (state == 1 && calcedSections == seenSections) || state > 1 ) { eDebugNoNewLine("[EPGC] "); switch (source) diff --git a/lib/gdi/font.cpp b/lib/gdi/font.cpp index dfac144c..b7d3c1db 100644 --- a/lib/gdi/font.cpp +++ b/lib/gdi/font.cpp @@ -363,7 +363,7 @@ int eTextPara::appendGlyph(Font *current_font, FT_Face current_face, FT_UInt gly } pGlyph ng; - ng.bbox.setLeft( (flags&GS_ISFIRST|cursor.x()-1)+glyph->left ); + ng.bbox.setLeft( ((flags&GS_ISFIRST)|(cursor.x()-1))+glyph->left ); ng.bbox.setTop( cursor.y() - glyph->top ); ng.bbox.setWidth( glyph->width ); ng.bbox.setHeight( glyph->height ); |
