Skip to content

Commit

Permalink
Avoid using std::byte, use uint8_t instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-perron committed Apr 3, 2023
1 parent f869c2c commit 1e31475
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion android_test/Android.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ LOCAL_CPP_EXTENSION := .cc .cpp .cxx
LOCAL_SRC_FILES:=test.cpp
LOCAL_MODULE:=spirvtools_test
LOCAL_LDLIBS:=-landroid
LOCAL_CXXFLAGS:=-std=c++17 -fno-exceptions -fno-rtti -Werror
LOCAL_CXXFLAGS:=-std=c++11 -fno-exceptions -fno-rtti -Werror
LOCAL_STATIC_LIBRARIES=SPIRV-Tools SPIRV-Tools-opt
include $(BUILD_SHARED_LIBRARY)

Expand Down
2 changes: 1 addition & 1 deletion source/util/small_vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ class SmallVector {

// A type with the same alignment and size as T, but will is POD.
struct alignas(T) PodType {
std::array<std::byte, sizeof(T)> data;
std::array<int8_t, sizeof(T)> data;
};

// The actual data used to store the array elements. It must never be used
Expand Down

0 comments on commit 1e31475

Please sign in to comment.