Explorar o código

Merge pull request #10669 from richardkchapman/getreal

HPCC-18653 Code to access a real from an initialiser looks wrong

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday %!s(int64=7) %!d(string=hai) anos
pai
achega
d293095f03
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      rtl/eclrtl/rtlrecord.cpp

+ 1 - 1
rtl/eclrtl/rtlrecord.cpp

@@ -551,7 +551,7 @@ double RtlRow::getReal(unsigned field) const
     if (!fieldInfo->omitable() || getSize(field))
         return type->getReal(self + getOffset(field));
     else if (fieldInfo->initializer)
-        return type->getInt(fieldInfo->initializer);
+        return type->getReal(fieldInfo->initializer);
     else
         return 0;
 }