Skip to content

Commit

Permalink
chore: tidy up TiDBColumn
Browse files Browse the repository at this point in the history
Signed-off-by: SchrodingerZhu <[email protected]>
  • Loading branch information
SchrodingerZhu committed Jun 21, 2022
1 parent 74164e7 commit 2b4eead
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dbms/src/Flash/Coprocessor/TiDBColumn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ void TiDBColumn::append(const TiDBDecimal & decimal)
encodeLittleEndian<UInt8>(decimal.digits_int, *data);
encodeLittleEndian<UInt8>(decimal.digits_frac, *data);
encodeLittleEndian<UInt8>(decimal.result_frac, *data);
encodeLittleEndian<UInt8>((UInt8)decimal.negative, *data);
for (int i = 0; i < MAX_WORD_BUF_LEN; i++)
encodeLittleEndian<UInt8>(static_cast<UInt8>(decimal.negative), *data);
for (int i : decimal.word_buf)
{
encodeLittleEndian<Int32>(decimal.word_buf[i], *data);
encodeLittleEndian<Int32>(i, *data);
}
finishAppendFixed();
}
Expand Down

0 comments on commit 2b4eead

Please sign in to comment.