mirror of
https://github.com/google/flatbuffers.git
synced 2026-06-27 08:12:18 +00:00
Add missing #include <algorithm> for std::min/std::max uses, and #include <limits> for std::numeric_limits<> (#7624)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
#include <limits>
|
||||
|
||||
#include "flexbuffers_test.h"
|
||||
|
||||
#include "flatbuffers/flexbuffers.h"
|
||||
@@ -289,4 +291,4 @@ void ParseFlexbuffersFromJsonWithNullTest() {
|
||||
}
|
||||
|
||||
} // namespace tests
|
||||
} // namespace flatbuffers
|
||||
} // namespace flatbuffers
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#include <algorithm>
|
||||
|
||||
#include "fuzz_test.h"
|
||||
|
||||
#include "flatbuffers/flatbuffers.h"
|
||||
@@ -302,4 +304,4 @@ void FuzzTest2() {
|
||||
}
|
||||
|
||||
} // namespace tests
|
||||
} // namespace flatbuffers
|
||||
} // namespace flatbuffers
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
#include "monster_test.h"
|
||||
|
||||
#include <limits>
|
||||
#include <vector>
|
||||
|
||||
#include "flatbuffers/flatbuffer_builder.h"
|
||||
@@ -852,4 +853,4 @@ void UnPackTo(const uint8_t *flatbuf) {
|
||||
}
|
||||
|
||||
} // namespace tests
|
||||
} // namespace flatbuffers
|
||||
} // namespace flatbuffers
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#include "parser_test.h"
|
||||
|
||||
#include <cmath>
|
||||
#include <limits>
|
||||
#include <string>
|
||||
|
||||
#include "flatbuffers/idl.h"
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
#include <stdint.h>
|
||||
|
||||
#include <cmath>
|
||||
#include <limits>
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user