remove an always-true sizeof(u8) assert

This commit is contained in:
Dmitry Muhomor 2023-10-30 12:35:24 +02:00 committed by Daniel Micay
parent c75cb4c3f3
commit 25f0fe9c69
1 changed files with 0 additions and 2 deletions

2
util.h
View File

@ -1,7 +1,6 @@
#ifndef UTIL_H
#define UTIL_H
#include <assert.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
@ -59,7 +58,6 @@ static inline size_t align(size_t size, size_t align) {
}
// u4_arr_{set,get} are helper functions for using u8 array as an array of unsigned 4-bit values.
static_assert(sizeof(u8) == 1, "unexpected u8 size");
// val is treated as a 4-bit value
static inline void u4_arr_set(u8 *arr, size_t idx, u8 val) {