1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-01-09 00:16:55 +00:00

Add missing stddef header where size_t is used.

This commit is contained in:
Thomas Harte
2021-07-01 23:15:32 -04:00
parent 2327c48cc4
commit 51d98ef9ab
5 changed files with 8 additions and 0 deletions

View File

@@ -8,6 +8,8 @@
#include "MemoryPacker.hpp"
#include <cstddef>
void Memory::PackBigEndian16(const std::vector<uint8_t> &source, uint16_t *target) {
for(size_t c = 0; c < source.size(); c += 2) {
target[c >> 1] = uint16_t(source[c] << 8) | uint16_t(source[c+1]);