Fix type-punning issues
commitb867d324ceb7e5c4f14a04c6b55d69498812d24b
authorDan McGee <dpmcgee@gmail.com>
Tue, 12 May 2009 01:17:38 +0000 (11 20:17 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sun, 17 May 2009 05:41:18 +0000 (16 22:41 -0700)
tree4995fea8f2d925feaeb0183ac2e87c6fa86a5144
parente4b09dad9f65395fd4bb8ab165012a3a6698a75b
Fix type-punning issues

In these two places we are casting part of our unsigned char sha1 array into
an unsigned int, which violates GCCs strict-aliasing rules (and probably
other compilers).

Signed-off-by: Dan McGee <dpmcgee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
decorate.c
object.c