Skip to content

Commit

Permalink
Update dataBuffer.h
Browse files Browse the repository at this point in the history
  • Loading branch information
daid authored Jul 12, 2023
1 parent 588da4b commit d0c0826
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/io/dataBuffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ class DataBuffer
{
uint32_t len = 0;
read(len);
if (len == 0) { s.clear(); return; }
if (read_index + len > buffer.size()) return;
s.assign(reinterpret_cast<char*>(&buffer[read_index]), len);
read_index += len;
Expand Down

1 comment on commit d0c0826

@daid-tinyci
Copy link

@daid-tinyci daid-tinyci bot commented on d0c0826 Jul 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TinyCI build failure:

[make -j 2] returned [2]:


[  1%] Built target glad

[ 17%] Built target box2d

[ 27%] Built target lua

[ 34%] Built target basisu-encoder

[ 80%] Built target opus

[ 80%] Generating glDebug.inl

-- GLAD header: /data/tinyci_build/daid/SeriousProton/libs/glad/glad/glad.h

-- GlDebug.inl output: /data/tinyci_build/daid/SeriousProton/_build_native/include/graphics/glDebug.inl

[ 80%] Building CXX object CMakeFiles/seriousproton_objects.dir/src/collisionable.cpp.o

[ 80%] Building CXX object CMakeFiles/seriousproton_objects.dir/src/engine.cpp.o

[ 80%] Building CXX object CMakeFiles/seriousproton_objects.dir/src/graphics/freetypefont.cpp.o

/data/tinyci_build/daid/SeriousProton/src/graphics/freetypefont.cpp:8:10: fatal error: ft2build.h: No such file or directory

    8 | #include <ft2build.h>

      |          ^~~~~~~~~~~~

compilation terminated.

make[2]: *** [CMakeFiles/seriousproton_objects.dir/build.make:194: CMakeFiles/seriousproton_objects.dir/src/graphics/freetypefont.cpp.o] Error 1

make[2]: *** Waiting for unfinished jobs....

make[1]: *** [CMakeFiles/Makefile2:209: CMakeFiles/seriousproton_objects.dir/all] Error 2

make: *** [Makefile:136: all] Error 2

Please sign in to comment.