Skip to content

Include <cstdint> for uint32_t in numpy_support.h - #1609

Merged
meta-codesync[bot] merged 1 commit into
facebookresearch:mainfrom
athmasagar:export-D115313605
Aug 9, 2026
Merged

Include <cstdint> for uint32_t in numpy_support.h#1609
meta-codesync[bot] merged 1 commit into
facebookresearch:mainfrom
athmasagar:export-D115313605

Conversation

@athmasagar

Copy link
Copy Markdown
Contributor

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

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
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 8, 2026
@meta-codesync

meta-codesync Bot commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

@athmasagar has exported this pull request. If you are a Meta employee, you can view the originating Diff in D115313605.

@meta-codesync
meta-codesync Bot merged commit fd6e87f into facebookresearch:main Aug 9, 2026
204 of 207 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant