Made lib/base conversion functions const where possible

This commit is contained in:
2024-04-28 17:41:00 +05:30
parent cce3259b56
commit 06a883d538
3 changed files with 28 additions and 26 deletions

View File

@@ -70,7 +70,7 @@ word_t word_bctoh(word_t w)
return y.h;
}
hword_t convert_bytes_to_hword(byte_t *bytes)
hword_t convert_bytes_to_hword(const byte_t *bytes)
{
hword_t h = 0;
for (size_t i = 0; i < HWORD_SIZE; ++i)
@@ -78,7 +78,7 @@ hword_t convert_bytes_to_hword(byte_t *bytes)
return h;
}
word_t convert_bytes_to_word(byte_t *bytes)
word_t convert_bytes_to_word(const byte_t *bytes)
{
word_t h = 0;
for (size_t i = 0; i < WORD_SIZE; ++i)