diff options
author | sfan5 <sfan5@live.de> | 2024-03-17 18:21:09 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2024-03-17 20:04:04 +0100 |
commit | ead9f892b3dbe6999b625b6ce3e01c50e59ee69a (patch) | |
tree | 213108dc6b7158a74f13326b9fd0528523e72381 /osdep | |
parent | 23c988b3e10b4ff8158178a3f3c4767e65cbcf68 (diff) | |
download | mpv-ead9f892b3dbe6999b625b6ce3e01c50e59ee69a.tar.bz2 mpv-ead9f892b3dbe6999b625b6ce3e01c50e59ee69a.tar.xz |
various: use static assertions where appropriate
Diffstat (limited to 'osdep')
-rw-r--r-- | osdep/io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep/io.c b/osdep/io.c index d66160c0e7..4306a04a6d 100644 --- a/osdep/io.c +++ b/osdep/io.c @@ -189,7 +189,7 @@ static bool get_file_ids_win8(HANDLE h, dev_t *dev, ino_t *ino) // SDK, but we can ignore that by just memcpying it. This will also // truncate the file ID on 32-bit Windows, which doesn't support __int128. // 128-bit file IDs are only used for ReFS, so that should be okay. - assert(sizeof(*ino) <= sizeof(ii.FileId)); + static_assert(sizeof(*ino) <= sizeof(ii.FileId), ""); memcpy(ino, &ii.FileId, sizeof(*ino)); return true; } |