fix: undo some mistakes

This commit is contained in:
Tropical 2026-03-06 05:06:27 -06:00 committed by JuiceyDev
parent 052a656673
commit 95c26f69cf
4 changed files with 6 additions and 6 deletions

View file

@ -90,7 +90,7 @@ void pipe_select_interrupter::recreate()
void pipe_select_interrupter::interrupt()
{
char uint8_t = 0;
char byte = 0;
signed_size_type result = ::write(write_descriptor_, &byte, 1);
(void)result;
}

View file

@ -140,7 +140,7 @@ void socket_select_interrupter::recreate()
void socket_select_interrupter::interrupt()
{
char uint8_t = 0;
char byte = 0;
socket_ops::buf b;
socket_ops::init_buf(b, &byte, 1);
boost::system::error_code ec;

View file

@ -172,7 +172,7 @@ public:
// External Operations
void process_bit( bool bit );
void process_bits( unsigned char bits, std::size_t bit_count );
void process_byte( unsigned char uint8_t );
void process_byte( unsigned char byte );
void process_block( void const *bytes_begin, void const *bytes_end );
void process_bytes( void const *buffer, std::size_t byte_count );
@ -223,14 +223,14 @@ public:
void reset( value_type new_rem = InitRem );
// External Operations
void process_byte( unsigned char uint8_t );
void process_byte( unsigned char byte );
void process_block( void const *bytes_begin, void const *bytes_end );
void process_bytes( void const *buffer, std::size_t byte_count );
value_type checksum() const;
// Operators
void operator ()( unsigned char uint8_t );
void operator ()( unsigned char byte );
value_type operator ()() const;
private:

View file

@ -88,7 +88,7 @@ inline void sha1::reset()
inline void sha1::process_byte(unsigned char byte)
{
process_byte_impl(uint8_t);
process_byte_impl(byte);
// size_t max value = 0xFFFFFFFF
//if (bit_count_low + 8 >= 0x100000000) { // would overflow