Skip to content

Commit

Permalink
Fixed compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
PENGUINLIONG committed Aug 23, 2022
1 parent 3d542fe commit 3ae5785
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c_api/src/taichi_core_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ void ti_transition_texture(TiRuntime runtime,
auto layout2 = (taichi::lang::ImageLayout)layout;

bool is_layout_valid;
switch (layout) {
switch ((taichi::lang::ImageLayout)layout) {
#define PER_IMAGE_LAYOUT(x) case taichi::lang::ImageLayout::x:
#include "taichi/inc/image_layout.inc.h"
#undef PER_IMAGE_LAYOUT
Expand Down

0 comments on commit 3ae5785

Please sign in to comment.