refactor: change char_u to uint8_t or char in sha256.c/undo.c (#21914)

Use uint8_t for bytes in hashes as it doesn't make sense for them to be signed.
This commit is contained in:
zeertzjq
2023-01-21 08:58:57 +08:00
committed by GitHub
parent efe5ce6fa8
commit 1c16d0994d
5 changed files with 44 additions and 44 deletions

View File

@@ -12,7 +12,7 @@
typedef struct {
uint32_t total[2];
uint32_t state[8];
char_u buffer[SHA256_BUFFER_SIZE];
uint8_t buffer[SHA256_BUFFER_SIZE];
} context_sha256_T;
#ifdef INCLUDE_GENERATED_DECLARATIONS