[Development] Change in qfloat16 ?

Axel Spoerl axel.spoerl at qt.io
Mon Jul 28 17:13:31 CEST 2025


Hi,

Has anything changed in the qfloat16 implementation recently?

With qtbase head at 0dc377283b024cc65d6e8cd2126066ecbe753bea and
../../dev/qtbase/configure  -developer-build -xcb -make tests

...and g++15.1.1 on openSuSE, I get this error:
/home/axel/QtGit/dev/qtbase/src/corelib/doc/snippets/code/src_corelib_serialization_qcborstream.cpp: In function ‘void writeDouble(QCborStreamWriter&, double)’:
/home/axel/QtGit/dev/qtbase/src/corelib/doc/snippets/code/src_corelib_serialization_qcborstream.cpp:164:24: error: conversion from ‘float’ to non-scalar type ‘qfloat16’ requested
 164 |         qfloat16 f16 = f;

This fixes the problem: https://codereview.qt-project.org/c/qt/qtbase/+/664024
But I wonder how this can have merged: https://codereview.qt-project.org/c/qt/qtbase/+/663662

Thanks,
Axel


Confidential
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20250728/1b93ed4e/attachment.htm>


More information about the Development mailing list