Navigation


Changeset 792:0f566e550813 in freeDiameter for libfdproto


Ignore:
Timestamp:
Jul 13, 2012, 5:37:32 AM (12 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

improved the previous fix... not sure it was correct

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdproto/messages.c

    r791 r792  
    13271327#define PUT_in_buf_64( _u64data, _bufptr ) {                                                    \
    13281328        uint64_t __v = htonll((uint64_t)(_u64data));                                            \
    1329         *(uint32_t *)(_bufptr) = (uint32_t)(__v);                                               \
    1330         *(((uint32_t *)(_bufptr))+1) = (uint32_t)(__v >> 32);                                   \
     1329        memcpy(_bufptr, &__v, sizeof(__v));                                                     \
    13311330}
    13321331
Note: See TracChangeset for help on using the changeset viewer.