Skip to content

Commit

Permalink
[cpp] Fix some MSVC warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiashienzsch committed Sep 29, 2024
1 parent a4001af commit c241de3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
cmake_prefix_path: ""
cmake_flags: ""
build_type: "Release"
cxx_flags: ""
cxx_flags: "/EHsc"
python_version: "3.12"
pffdtd_engine_2d: "build/src/cpp/pffdtd-engine.exe"
pffdtd_engine_3d: "build/src/cpp/pffdtd-engine.exe"
Expand Down
2 changes: 1 addition & 1 deletion src/cpp/pffdtd/engine_cpu_2d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ auto run(Simulation2D const& sim) {
auto const Nb = static_cast<int64_t>(sim.adj_bn.size());
auto const Ns = static_cast<int64_t>(sim.in_ixy.size());
auto const Nr = static_cast<int64_t>(sim.out_ixy.size());
auto const lossFactor = sim.loss_factor;
auto const lossFactor = static_cast<Real>(sim.loss_factor);

auto u0_buf = stdex::mdarray<Real, stdex::dextents<size_t, 1>>(Npts);
auto u1_buf = stdex::mdarray<Real, stdex::dextents<size_t, 1>>(Npts);
Expand Down

0 comments on commit c241de3

Please sign in to comment.