https://bugs.kde.org/show_bug.cgi?id=397313

--- Comment #3 from Daniel Fahlgren <dan...@fahlgren.se> ---
Just to clarify. The following example shows that long double ld1 = <value>
does not work as you normally expect an assignment to work.

#include <stdio.h>
#include <string.h>

void func1(void)
{
  long double a;
  memset(&a, 0xFF, sizeof a);
}

void func2(void)
{
  long double a = 0;
  char *p = (char *) &a;
  for (int i = 0; i < sizeof a; i++)
    printf("%d: 0x%02x\n", i, p[i] & 0xff);
}

int main(int argc, char *argv[])
{
  func1()
  func2();
  return 0;
}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to