Skip to content

Commit

Permalink
SuiteSparse_config: Switch SuiteSparse_long to intptr_t.
Browse files Browse the repository at this point in the history
Fixes #221.
  • Loading branch information
mmuetzel committed Jul 23, 2023
1 parent f3619ad commit ce416cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions SuiteSparse_config/Config/SuiteSparse_config.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ extern "C"
// int64_t instead.

#undef SuiteSparse_long
#undef SuiteSparse_ulong
#undef SuiteSparse_long_max
#undef SuiteSparse_long_idd
#undef SuiteSparse_long_id

#define SuiteSparse_long int64_t
#define SuiteSparse_long_max INT64_MAX
#define SuiteSparse_long_idd PRId64
#define SuiteSparse_long intptr_t
#define SuiteSparse_ulong uintptr_t
#define SuiteSparse_long_max INTPTR_MAX
#define SuiteSparse_long_idd PRIdPTR
#define SuiteSparse_long_id "%" SuiteSparse_long_idd

//------------------------------------------------------------------------------
Expand Down
8 changes: 5 additions & 3 deletions SuiteSparse_config/SuiteSparse_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,15 @@ extern "C"
// int64_t instead.

#undef SuiteSparse_long
#undef SuiteSparse_ulong
#undef SuiteSparse_long_max
#undef SuiteSparse_long_idd
#undef SuiteSparse_long_id

#define SuiteSparse_long int64_t
#define SuiteSparse_long_max INT64_MAX
#define SuiteSparse_long_idd PRId64
#define SuiteSparse_long intptr_t
#define SuiteSparse_ulong uintptr_t
#define SuiteSparse_long_max INTPTR_MAX
#define SuiteSparse_long_idd PRIdPTR
#define SuiteSparse_long_id "%" SuiteSparse_long_idd

//------------------------------------------------------------------------------
Expand Down

0 comments on commit ce416cc

Please sign in to comment.