Correct the get3DTableValue() return type. (#1007)

The core interpolation function returns table3d_value_t
This commit is contained in:
tx_haggis 2023-02-13 14:43:45 -06:00 committed by GitHub
parent 2312102d4b
commit d7d44014bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ TABLE3D_GENERATOR(TABLE3D_GEN_TYPE)
// Generate get3DTableValue() functions
#define TABLE3D_GEN_GET_TABLE_VALUE(size, xDom, yDom) \
static inline int get3DTableValue(TABLE3D_TYPENAME_BASE(size, xDom, yDom) *pTable, table3d_axis_t y, table3d_axis_t x) \
static inline table3d_value_t get3DTableValue(TABLE3D_TYPENAME_BASE(size, xDom, yDom) *pTable, table3d_axis_t y, table3d_axis_t x) \
{ \
return get3DTableValue( &pTable->get_value_cache, \
TABLE3D_TYPENAME_BASE(size, xDom, yDom)::value_t::row_size, \