diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-12-09 03:47:28 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2009-12-09 03:47:28 +0000 |
commit | ca1c1c7c4ca76728b3134cf685e8b8a6142e663b (patch) | |
tree | f3d4a78443824bdeffdfc05f88c6b3574c27eb50 /converter/other | |
parent | 5fa078999cc38f2520054d033237c2e9e9afbb25 (diff) | |
download | netpbm-mirror-ca1c1c7c4ca76728b3134cf685e8b8a6142e663b.tar.gz netpbm-mirror-ca1c1c7c4ca76728b3134cf685e8b8a6142e663b.tar.xz netpbm-mirror-ca1c1c7c4ca76728b3134cf685e8b8a6142e663b.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1030 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other')
-rw-r--r-- | converter/other/pamtopfm.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/converter/other/pamtopfm.c b/converter/other/pamtopfm.c index 129b8eee..882f75c3 100644 --- a/converter/other/pamtopfm.c +++ b/converter/other/pamtopfm.c @@ -150,12 +150,12 @@ floatToPfmSample(float const input, Type converter -----------------------------------------------------------------------------*/ if (machineEndianness == pfmEndianness) { - *(float *)outputP->bytes = input; + MEMSCPY(&outputP->bytes, &input); } else { unsigned char reversed[sizeof(pfmSample)]; unsigned int i, j; - *(float *)reversed = input; + MEMSCPY(&reversed, &input); for (i = 0, j = sizeof(pfmSample)-1; i < sizeof(pfmSample); |