X-Git-Url: http://git.tdb.fi/?p=libs%2Fdatafile.git;a=blobdiff_plain;f=source%2Fbinfloat.h;h=f6e6d1fb5b493a045022fefc7af2c1ecc2aec335;hp=e50b3204ce974e992ca3cb52f5089456d8b16b39;hb=d3c55a54b4c6ed0f740a87e5446e4054888bdcdf;hpb=66c0800ff800a28739807e79f20c79c45df84a62 diff --git a/source/binfloat.h b/source/binfloat.h index e50b320..f6e6d1f 100644 --- a/source/binfloat.h +++ b/source/binfloat.h @@ -55,7 +55,7 @@ template inline BinFloat BinFloat::explode_iec559(T v) { typename MatchingInt::Type i; - memcpy(&v, &i, sizeof(T)); + memcpy(&i, &v, sizeof(T)); return explode(i, sizeof(T)*CHAR_BIT); }