1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-20 10:17:05 +00:00

Adds some further `costs.

This commit is contained in:
Thomas Harte
2020-05-09 23:03:33 -04:00
parent 25996ce180
commit 05c3f2a30d
3 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -9,7 +9,7 @@
#include "MemoryPacker.hpp"
void Memory::PackBigEndian16(const std::vector<uint8_t> &source, uint16_t *target) {
for(std::size_t c = 0; c < source.size(); c += 2) {
for(size_t c = 0; c < source.size(); c += 2) {
target[c >> 1] = uint16_t(source[c] << 8) | uint16_t(source[c+1]);
}
}