add temp variable to work around compiler bug

This commit is contained in:
Mathieu Lacage
2010-08-13 14:03:52 +02:00
parent ce0de7c3da
commit fbd5df18ee

View File

@@ -414,9 +414,12 @@ private:
{
return &(PeekResolution ()->info[timeUnit]);
}
static inline Time From (HighPrecision tmp, enum Unit timeUnit)
static inline Time From (HighPrecision from, enum Unit timeUnit)
{
struct Information *info = PeekInformation (timeUnit);
// DO NOT REMOVE this temporary variable. It's here
// to work around a compiler bug in gcc 3.4
HighPrecision tmp = from;
if (info->fromMul)
{
tmp.Mul (info->timeFrom);