projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use macros from cast.h instead of literal casts
[pspp]
/
src
/
libpspp
/
range-set.h
diff --git
a/src/libpspp/range-set.h
b/src/libpspp/range-set.h
index 941692b40029098ea8224ea4d0a4f0e1b9026385..ee7dac23137d3c39b392b13cb11c7d560c71fc79 100644
(file)
--- a/
src/libpspp/range-set.h
+++ b/
src/libpspp/range-set.h
@@
-26,6
+26,7
@@
#include <stdbool.h>
#include <libpspp/bt.h>
#include <stdbool.h>
#include <libpspp/bt.h>
+#include <libpspp/cast.h>
/* A set of ranges. */
struct range_set
/* A set of ranges. */
struct range_set
@@
-122,7
+123,7
@@
static inline const struct range_set_node *
range_set_next (const struct range_set *rs, const struct range_set_node *node)
{
return (node != NULL
range_set_next (const struct range_set *rs, const struct range_set_node *node)
{
return (node != NULL
- ? range_set_next__ (rs,
(struct range_set_node *) node
)
+ ? range_set_next__ (rs,
CONST_CAST (struct range_set_node *, node)
)
: range_set_first__ (rs));
}
: range_set_first__ (rs));
}
@@
-147,7
+148,7
@@
static inline const struct range_set_node *
range_set_prev (const struct range_set *rs, const struct range_set_node *node)
{
return (node != NULL
range_set_prev (const struct range_set *rs, const struct range_set_node *node)
{
return (node != NULL
- ? range_set_prev__ (rs,
(struct range_set_node *) node
)
+ ? range_set_prev__ (rs,
CONST_CAST (struct range_set_node *, node)
)
: range_set_last__ (rs));
}
: range_set_last__ (rs));
}