Skip to content

Commit dd1ddbb

Browse files
committed
* c/hv_priv.h (init_sentinels): Make sure HV_DIMENSION is correct.
1 parent 2224a59 commit dd1ddbb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

c/hv_priv.h

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,13 @@ init_sentinels(dlnode_t * restrict list, const double * restrict ref)
145145
#if HV_DIMENSION == 3
146146
-DBL_MAX, ref[1], -DBL_MAX, // Sentinel 1
147147
ref[0], -DBL_MAX, -DBL_MAX, // Sentinel 2
148-
-DBL_MAX, -DBL_MAX, ref[2] // Sentinel 2
149-
#else
148+
-DBL_MAX, -DBL_MAX, ref[2] // Sentinel 3
149+
#elif HV_DIMENSION == 4
150150
-DBL_MAX, ref[1], -DBL_MAX, -DBL_MAX, // Sentinel 1
151151
ref[0], -DBL_MAX, -DBL_MAX, -DBL_MAX, // Sentinel 2
152-
-DBL_MAX, -DBL_MAX, ref[2], ref[3] // Sentinel 2
152+
-DBL_MAX, -DBL_MAX, ref[2], ref[3] // Sentinel 3
153+
#else
154+
# error "Unknown HV_DIMENSION"
153155
#endif
154156
};
155157

0 commit comments

Comments
 (0)