Login
You're viewing the techdon.dev public feed.
  • Feb 10, 2026, 12:53 PM

    I think you're misdiagnosing the bug here. Here's a union version of the same thing: typedef union { float f; int i; } fi;
    void foo(const fi *x) { if (isnan(x->f)) printf("%x\n",x->i); }
    int main() { fi x; x.i = 0x7f987654; printf("%x\n",x.i); foo(&x); return 0; }

    💬 0🔄 0⭐ 0