Skip to content

Commit 9ed2ffe

Browse files
committed
static constexpr for unchanging terms
Signed-off-by: Chris Perkins <[email protected]>
1 parent af5d723 commit 9ed2ffe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/include/CL/sycl/detail/image_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ class __SYCL_EXPORT image_impl final : public SYCLMemObjT {
250250

251251
// MRange<> is [width], [width,height], or [width,height,depth] (which
252252
// is different than MAccessRange, etc in bufffers)
253-
int x_term_pos = 0, y_term_pos = 1, z_term_pos = 2;
253+
static constexpr int x_term_pos = 0, y_term_pos = 1, z_term_pos = 2;
254254
Desc.image_width = MRange[x_term_pos];
255255
Desc.image_height = Dimensions > 1 ? MRange[y_term_pos] : 1;
256256
Desc.image_depth = Dimensions > 2 ? MRange[z_term_pos] : 1;

0 commit comments

Comments
 (0)