Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Compiler should decide on inlining

  • Loading branch information...
commit 1b2b8cbbded1d8cc9f79ec7b71680be714fbab01 1 parent 4769dc7
@pietern pietern authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/t_zset.c
View
6 src/t_zset.c
@@ -180,15 +180,15 @@ typedef struct {
int minex, maxex; /* are min or max exclusive? */
} zrangespec;
-static inline int zslValueInMinRange(double value, zrangespec *spec) {
+static int zslValueInMinRange(double value, zrangespec *spec) {
return spec->minex ? (value > spec->min) : (value >= spec->min);
}
-static inline int zslValueInMaxRange(double value, zrangespec *spec) {
+static int zslValueInMaxRange(double value, zrangespec *spec) {
return spec->maxex ? (value < spec->max) : (value <= spec->max);
}
-static inline int zslValueInRange(double value, zrangespec *spec) {
+static int zslValueInRange(double value, zrangespec *spec) {
return zslValueInMinRange(value,spec) && zslValueInMaxRange(value,spec);
}
Please sign in to comment.
Something went wrong with that request. Please try again.