Skip to content

Commit

Permalink
Fixed: MSVC build
Browse files Browse the repository at this point in the history
  • Loading branch information
richardbiely committed Mar 11, 2024
1 parent cca7f6f commit f9eafc9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/perf/app/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ class FrameBuffer {
}

void draw(int x, int y, char c) {
if (y >= 0 && y < m_height) {
if (x >= 0 && x < m_width) {
if (y >= 0 && y < (int)m_height) {
if (x >= 0 && x < (int)m_width) {
const auto xx = (uint32_t)x;
const auto yy = (uint32_t)y;
m_buffer[xx + yy * m_width] = c;
Expand Down Expand Up @@ -682,7 +682,6 @@ void BM_Run(picobench::state& state) {

srand(0);

uint32_t iter = 0;
state.stop_timer();
for (auto _: state) {
state.stop_timer();
Expand Down

0 comments on commit f9eafc9

Please sign in to comment.