summaryrefslogtreecommitdiffstats
path: root/libdimension/dimension
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@gmail.com>2011-04-03 21:30:15 -0400
committerTavian Barnes <tavianator@gmail.com>2011-04-03 21:30:15 -0400
commit5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802 (patch)
tree2b642b87d97ab13b050e1ef9323725c0bbd5b5c6 /libdimension/dimension
parent7bc2770af08e317b2076540050c68d2de55a11db (diff)
downloaddimension-5a535f9fac3f4b82f0b154b4c81fd1e2a8d62802.tar.xz
Don't use awkward (*fptr)() syntax.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r--libdimension/dimension/array.h2
-rw-r--r--libdimension/dimension/object.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/libdimension/dimension/array.h b/libdimension/dimension/array.h
index 159cd36..51830e7 100644
--- a/libdimension/dimension/array.h
+++ b/libdimension/dimension/array.h
@@ -236,7 +236,7 @@ dmnsn_array_apply(dmnsn_array *array, dmnsn_callback_fn *callback)
{
char *i, *last = (char *)dmnsn_array_last(array);
for (i = (char *)dmnsn_array_first(array); i <= last; i += array->obj_size) {
- (*callback)((void *)i);
+ callback((void *)i);
}
}
diff --git a/libdimension/dimension/object.h b/libdimension/dimension/object.h
index 4d7b5f8..46ff8f7 100644
--- a/libdimension/dimension/object.h
+++ b/libdimension/dimension/object.h
@@ -144,7 +144,7 @@ dmnsn_object_intersection(const dmnsn_object *object, dmnsn_line line,
dmnsn_intersection *intersection)
{
dmnsn_line line_trans = dmnsn_transform_line(object->trans_inv, line);
- if ((*object->intersection_fn)(object, line_trans, intersection)) {
+ if (object->intersection_fn(object, line_trans, intersection)) {
/* Get us back into world coordinates */
intersection->ray = line;
intersection->normal = dmnsn_transform_normal(object->trans,
@@ -165,7 +165,7 @@ DMNSN_INLINE bool
dmnsn_object_inside(const dmnsn_object *object, dmnsn_vector point)
{
point = dmnsn_transform_vector(object->trans_inv, point);
- return (*object->inside_fn)(object, point);
+ return object->inside_fn(object, point);
}
#endif /* DIMENSION_OBJECT_H */