Add "f" suffix to literals of type float
...to avoid > error CS0266: Cannot implicitly convert type 'double' to 'float'. An explicit conversion exists (are you missing a cast?) (as would e.g. happen if offapi/org/libreoffice/embindtest/Constants.idl were included in regular builds) Change-Id: I6a4d8b151755edd3a8b03d73e2bb546cf1d19e7d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174200 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
This commit is contained in:
@@ -881,7 +881,7 @@ void NetProducer::produceConstantGroup(std::string_view name,
|
||||
break;
|
||||
case unoidl::ConstantValue::TYPE_FLOAT:
|
||||
type = "float"_ostr;
|
||||
value = OString::number(member.value.floatValue);
|
||||
value = OString::number(member.value.floatValue) + "f";
|
||||
break;
|
||||
case unoidl::ConstantValue::TYPE_DOUBLE:
|
||||
type = "double"_ostr;
|
||||
|
Reference in New Issue
Block a user