Commits

wlav committed 1ea25f4

from Scott Snyder: fix aliasing bug

  • Participants
  • Parent commits 2512d81
  • Branches reflex-support

Comments (0)

Files changed (1)

File pypy/module/cppyy/src/cintcwrapper.cxx

             break;
         }
         case 'f': {
-            assert(sizeof(float) <= sizeof(long));
-            long val = libp->para[i].obj.i;
-            void* pval = (void*)&val;
-            libp->para[i].obj.d = *(float*)pval;
+            float val = libp->para[i].obj.fl;
+            libp->para[i].obj.d = val;
             break;
         }
         case 'F': {