Skip to content

Commit

Permalink
Fix 'uint64_t' was not declared in this scope
Browse files Browse the repository at this point in the history
The code fails to build from source with GCC 13.1 because `uint64_t` is
not defined.

```
src/args.cc: In member function 'int64_t fasttext::Args::getAutotuneModelSize() const':
src/args.cc:468:3: error: 'uint64_t' was not declared in this scope
  468 |   uint64_t multiplier = 1;
      |   ^~~~~~~~
src/args.cc:17:1: note: 'uint64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
   16 | #include <unordered_map>
  +++ |+#include <cstdint>
```

Signed-off-by: Christian Heimes <[email protected]>
  • Loading branch information
tiran committed Oct 1, 2024
1 parent 9d5b2a2 commit f8b084a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/args.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include "args.h"

#include <cstdlib>
#include <cstdint>

#include <iostream>
#include <stdexcept>
Expand Down

0 comments on commit f8b084a

Please sign in to comment.