Skip to content

Commit

Permalink
Fix rig_get_caps_int to return long long for cross platform compatibi…
Browse files Browse the repository at this point in the history
…lity

#562
  • Loading branch information
mdblack98 committed Feb 25, 2021
1 parent 26ca39c commit dc5e1bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/hamlib/rig.h
Original file line number Diff line number Diff line change
Expand Up @@ -1971,7 +1971,7 @@ enum rig_caps_cptr_e {
*
*/
//! @cond Doxygen_Suppress
extern long rig_get_caps_int(rig_model_t rig_model, enum rig_caps_int_e rig_caps);
extern long long rig_get_caps_int(rig_model_t rig_model, enum rig_caps_int_e rig_caps);

/**
* \brief Function to return char pointer value from rig->caps
Expand Down
2 changes: 1 addition & 1 deletion src/misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2146,7 +2146,7 @@ void *rig_get_function_ptr(rig_model_t rig_model,
* \param RIG* and rig_caps_int_e
* \return the corresponding long value -- -RIG_EINVAL is the only error possible
*/
long rig_get_caps_int(rig_model_t rig_model, enum rig_caps_int_e rig_caps)
long long rig_get_caps_int(rig_model_t rig_model, enum rig_caps_int_e rig_caps)
{
const struct rig_caps *caps = rig_get_caps(rig_model);

Expand Down

0 comments on commit dc5e1bf

Please sign in to comment.