leveldb icon indicating copy to clipboard operation
leveldb copied to clipboard

refactor: Cast type explicitly

Open hebasto opened this issue 1 year ago • 0 comments

This change:

  • Is a pure refactor without altering the assembly code, which might be verified, for example, with the https://godbolt.org/ service.
  • Fixes warning C4244 when compiling with MSVC at production quality W3 warning level:
... util\coding.cc(59,18): warning C4244: '=': conversion from 'uint64_t' to 'uint8_t', possible loss of data

hebasto avatar Nov 05 '23 12:11 hebasto