Home » U++ Library support » U++ Core » Weird result with Format();
|
|
|
|
Re: Weird result with Format(); [message #60313 is a reply to message #60307] |
Fri, 17 November 2023 18:41 |
Tom1
Messages: 1212 Registered: March 2007
|
Senior Contributor |
|
|
Hi,
I can confirm this too. I guess this is an unfortunate side effect of float recently gaining Value support.
In Core/Format.cpp it needs one or both of these additions:
...
void RegisterNumberFormatter(const char *id, Formatter f)
{
RegisterFormatter(DOUBLE_V, id, f);
RegisterFormatter(FLOAT_V, id, f); // << Add float support
RegisterFormatter(INT64_V, id, f);
RegisterFormatter(INT_V, id, f);
RegisterFormatter(BOOL_V, id, f);
RegisterNullFormatter(id, f);
}
...
and/or
...
static void sRegisterFormatters()
{
ONCELOCK {
IntDoubleRegister(BOOL_V);
IntDoubleRegister(INT_V);
IntDoubleRegister(INT64_V);
IntDoubleRegister(DOUBLE_V);
IntDoubleRegister(FLOAT_V); // << Add float support
...
I'm just guessing... Mirek knows for sure how to proceed.
Best regards,
Tom
|
|
|
|
Goto Forum:
Current Time: Sun May 05 02:19:59 CEST 2024
Total time taken to generate the page: 0.02723 seconds
|