File SimGear-1.0.0-strict_alias.patch of Package FlightGear

--- simgear/nasal/hash.c
+++ simgear/nasal/hash.c
@@ -24,7 +24,7 @@
         // Numbers get the number as a hash.  Just use the bits and
         // xor them together.  Note assumption that sizeof(double) >=
         // 2*sizeof(int).
-        unsigned int* p = (unsigned int*)&(r.num);
+        unsigned int* p = &(r.num);
         return p[0] ^ p[1];
     } else if(PTR(r).str->hashcode) {
         return PTR(r).str->hashcode;
openSUSE Build Service is sponsored by