Skip to content

Commit

Permalink
MacOS issues with size_t, closes GH-2588
Browse files Browse the repository at this point in the history
  • Loading branch information
pramsey committed Nov 24, 2023
1 parent f6376dc commit 0a55e30
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion include/c_types/restriction_t.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
struct Restriction_t {
double cost;
int64_t * via;
uint64_t via_size;
size_t via_size;
};

#endif // INCLUDE_C_TYPES_RESTRICTION_T_H_
2 changes: 1 addition & 1 deletion include/cpp_common/get_check_data.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ char getChar(const HeapTuple, const TupleDesc&, const Column_info_t&, bool, char
int64_t* get_array(ArrayType*, size_t*, bool);

/** @brief Function returns the values of specified columns in array. */
int64_t* getBigIntArr(const HeapTuple, const TupleDesc&, const Column_info_t&, uint64_t*);
int64_t* getBigIntArr(const HeapTuple, const TupleDesc&, const Column_info_t&, size_t*);

/** @brief Function returns the value of specified column in integer type. */
int64_t getBigInt(const HeapTuple, const TupleDesc&, const Column_info_t&);
Expand Down
2 changes: 1 addition & 1 deletion src/cpp_common/get_check_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ int64_t* getBigIntArr(
const HeapTuple tuple,
const TupleDesc &tupdesc,
const Column_info_t &info,
uint64_t *the_size) {
size_t *the_size) {
bool is_null = false;

Datum raw_array = SPI_getbinval(tuple, tupdesc, info.colNumber, &is_null);
Expand Down

0 comments on commit 0a55e30

Please sign in to comment.