Skip to content

Commit

Permalink
fix cvt_num8_num4
Browse files Browse the repository at this point in the history
  • Loading branch information
Reini Urban committed Sep 12, 2012
1 parent 6a80df4 commit e4efd86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/packfile/pf_items.c
Expand Up @@ -1062,7 +1062,7 @@ cvt_num8_num4(ARGOUT(unsigned char *dest), ARGIN(const unsigned char *src))
{
float f;
double d;
memcpy(&d, src, 4);
memcpy(&d, src, 8);
f = (float)d; /* TODO: test compiler cast */
memcpy(dest, &f, 4);
}
Expand Down

0 comments on commit e4efd86

Please sign in to comment.