Skip to content

Commit b40a7a3

Browse files
athmasagarfacebook-github-bot
authored andcommitted
Include <cstdint> for uint32_t in numpy_support.h
Summary: This diff adds `#include <cstdint>` to `numpy_support.h`. The header declares `load_npy_compressed(const char*, uint32_t, uint32_t)` but relied on `uint32_t` arriving transitively through `<memory>`, `<string>`, or `<vector>` rather than including the standard header that defines it. That transitive path is not guaranteed and is not provided under newer GCC/libstdc++ toolchains, where the translation unit fails to compile with `'uint32_t' has not been declared`. Including `<cstdint>` directly makes the header self-contained and it compiles cleanly across toolchains. Differential Revision: D115313605
1 parent 23d85ae commit b40a7a3

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/spdl/io/lib/archive/numpy_support.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
#pragma once
1010

11+
#include <cstdint>
1112
#include <memory>
1213
#include <string>
1314
#include <vector>

0 commit comments

Comments
 (0)