mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-19 16:47:28 +01:00
Don't use designated initializers
Some C/C++ compilers, such as MSVC, don't always support them. They're also not supported by GCC's "g++ -std=c++11 -Wpedantic".
This commit is contained in:
1 parent
ef7aa0d980
commit
c4b8a6a4cc
19 files changed
+639
-516
No files matched your search
@@ -76,10 +76,8 @@ int main(int argc, char** argv) {
|
||||
continue;
|
||||
}
|
||||
|
||||
uint32_t checksum = h.update((wuffs_base__slice_u8){
|
||||
.ptr = src_buffer,
|
||||
.len = static_cast<size_t>(n),
|
||||
});
|
||||
uint32_t checksum =
|
||||
h.update(wuffs_base__make_slice_u8(src_buffer, static_cast<size_t>(n)));
|
||||
|
||||
if (n == 0) {
|
||||
printf("%08" PRIx32 "\n", checksum);
|
||||
|
||||
Reference in new issue
Block a user