Skip to content

Commit

Permalink
Fixed: Compile warning and changed confusion string
Browse files Browse the repository at this point in the history
  • Loading branch information
Rejeq committed May 30, 2023
1 parent 0031d58 commit 40def2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gui/Desktop/src/View/Renderer/Window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void RendererWindow::Draw() {
static const std::array<ComboData<Cellnta::CubeMode>, 3> CubeModeData = {
ComboData(Cellnta::CubeMode::POINTS, "Points"),
ComboData(Cellnta::CubeMode::WIREFRAME, "Wireframe"),
ComboData(Cellnta::CubeMode::POLYGON, "Polygon (gives errors from 6d)"),
ComboData(Cellnta::CubeMode::POLYGON, "Polygon"),
};

Cellnta::CubeMode res = Cellnta::CubeMode::NONE;
Expand Down
2 changes: 1 addition & 1 deletion src/Renderer/HypercubeStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ void HypercubeStorage::GenerateIndicesPolygon() {
for (size_t currJump = 0; currJump < totalJumps; ++currJump) {
size_t currPlane = 0;
size_t midPoint = 1;
while (currPlane < currDim - 1) {
while (currPlane < (size_t) (currDim - 1)) {
assert(midPoint != edgeStart &&
"Middle point cannot be start of common edge");

Expand Down

0 comments on commit 40def2d

Please sign in to comment.