Ticket #19386: patch-bytes.cpp.diff

File patch-bytes.cpp.diff, 355 bytes (added by vike2000, 16 years ago)

from sourceforge.net/forum/message.php?msg_id=7267196, for functional downloading on os 10.4

  • bytes.cpp

    old new  
    3131
    3232#if __FLOAT_WORD_ORDER == __BYTE_ORDER
    3333#if __BYTE_ORDER == __BIG_ENDIAN
    34         res = dVal;
     34        res = *(uint64_t*)&dVal;
    3535#elif __BYTE_ORDER == __LITTLE_ENDIAN
    3636        uint64_t in  = *((uint64_t*)&dVal);
    3737        res = __bswap_64(in);