[En-Nut-Discussion] stm32_can.c fails to build

Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Mon Aug 20 12:44:09 CEST 2012


>>>>> "Harald" == Harald Kipp <harald.kipp at egnite.de> writes:

    Harald> Hi Uwe, On 18.08.2012 17:35, Uwe Bonnes wrote: Recently I had to

    >>  Watch out, I think your solution also stumbles on endienness.

    Harald> Btw. memcpy is endianess-agnostic.

Okay, now I think we are on common ground.

memcpy() like casting doesn't care for endianess, and as in
gorp/hashes/md5.c you replaced a cast with memcpy, things are equivalent.

Bye
-- 
Uwe Bonnes                bon at elektron.ikp.physik.tu-darmstadt.de

Institut fuer Kernphysik  Schlossgartenstrasse 9  64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------



More information about the En-Nut-Discussion mailing list