Jonathan Nieder wrote:

> I guess I'd suggest
>
>       namespace {
>
>       uint32 get_unaligned_32(const void *addr)
>       {
>               uint32 result;
>               memcpy(result, addr, sizeof(result);
>               return result;
>       }

Apparently I can't spell:

                uint32 result;
                memcpy(&result, addr, sizeof(result));
                return result;

(was missing an address-of operator and close-paren).  Sorry for the
confusion.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to