Merged revisions 282543 via svnmerge from
authorDavid Vossel <dvossel@digium.com>
Tue, 17 Aug 2010 19:34:52 +0000 (19:34 +0000)
committerDavid Vossel <dvossel@digium.com>
Tue, 17 Aug 2010 19:34:52 +0000 (19:34 +0000)
https://origsvn.digium.com/svn/asterisk/branches/1.8

........
  r282543 | dvossel | 2010-08-17 14:34:06 -0500 (Tue, 17 Aug 2010) | 4 lines

  fixes truncated uint64_t value in put_unaligned_uint64_t() function

  (issue #17804)
........

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@282544 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/unaligned.h

index 63f430f..9e6e743 100644 (file)
@@ -50,7 +50,7 @@ static inline unsigned short get_unaligned_uint16(const void *p)
 
 static inline void put_unaligned_uint64(void *p, uint64_t datum)
 {
-       struct { unsigned int d; } __attribute__((packed,may_alias)) *pp = p;
+       struct { uint64_t d; } __attribute__((packed,may_alias)) *pp = p;
 
        pp->d = datum;
 }