From 5a8694bbae92f6e68b11fb3de0047a711999a57a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 27 Aug 2014 14:35:38 +0200 Subject: Add workaround to compiler bug on Raspbian Wheezy --- chalk/core/kis_exif_value.cc | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'chalk/core') diff --git a/chalk/core/kis_exif_value.cc b/chalk/core/kis_exif_value.cc index 1981bd02..134d4009 100644 --- a/chalk/core/kis_exif_value.cc +++ b/chalk/core/kis_exif_value.cc @@ -667,8 +667,11 @@ TQString ExifValue::toString(uint i) return TQString("%1 ").arg( asExifNumber( i ).m_long ); case EXIF_TYPE_RATIONAL: return TQString("%1 / %2 ").arg( asExifNumber( i ).m_rational.numerator ).arg( asExifNumber( i ).m_rational.denominator ); - case EXIF_TYPE_SBYTE: - return TQString("%1 ").arg( asExifNumber( i ).m_sbyte ); + case EXIF_TYPE_SBYTE: { + /* workaround to compiler bug on Raspbian Wheezy */ + TQ_INT8 o_sbyte = asExifNumber( i ).m_sbyte; + return TQString("%1 ").arg( o_sbyte ); + } case EXIF_TYPE_SSHORT: return TQString("%1 ").arg( asExifNumber( i ).m_sshort ); case EXIF_TYPE_SLONG: -- cgit v1.2.1