Skip to content

Commit

Permalink
Use int32_t (int323 is no longer provided by config.h)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris00 committed Oct 3, 2023
1 parent 75ddf47 commit f2885e3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/lbfgs_stubs.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@

#if defined(ARCH_INT64_TYPE) && defined(ARCH_BIG_ENDIAN)
/* If the integer are 64 bits, one must use to the higher bytes to get
the least significant part of the number. Use "int32" provided by
the least significant part of the number. Use "int32_t" provided by
OCaml "config.h". */
#define PTR_INT(x) (integer *) (((int32 *) &x) + 1)
#include <caml/config.h>
#define PTR_INT(x) (integer *) (((int32_t *) &x) + 1)
#else
#define PTR_INT(x) &x /* low bits */
#endif
Expand Down

0 comments on commit f2885e3

Please sign in to comment.