diff options
Diffstat (limited to 'core/fxcodec')
-rw-r--r-- | core/fxcodec/codec/fx_codec.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/fxcodec/codec/fx_codec.cpp b/core/fxcodec/codec/fx_codec.cpp index 23171cf3ea..3edf8924c3 100644 --- a/core/fxcodec/codec/fx_codec.cpp +++ b/core/fxcodec/codec/fx_codec.cpp @@ -229,7 +229,7 @@ bool CCodec_BasicModule::A85Encode(const uint8_t* src_buf, uint32_t val = 0; int count = 0; while (pos < src_size) { - val += (uint32_t)(src_buf[pos] << (8 * (3 - pos))); + val += (uint32_t)(src_buf[pos]) << (8 * (3 - count)); count++; pos++; } |