From b3480111db18d5da3217e50a12a6fcd301e5e762 Mon Sep 17 00:00:00 2001 From: Corentin Jabot Date: Fri, 10 Sep 2021 15:27:48 +0200 Subject: [PATCH] Fix conversions warning (again) --- lib/Inky.cpp | 2 +- lib/Pinky.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Inky.cpp b/lib/Inky.cpp index f1c6c58..6e568c9 100644 --- a/lib/Inky.cpp +++ b/lib/Inky.cpp @@ -43,7 +43,7 @@ Position Inky::target(const GameState & gameState) const { targetPosition.y += 2; break; case Direction::NONE: - assert("Pacman should be moving!"); + assert(false && "Pacman should be moving!"); break; } diff --git a/lib/Pinky.cpp b/lib/Pinky.cpp index 1b855f1..0c06605 100644 --- a/lib/Pinky.cpp +++ b/lib/Pinky.cpp @@ -43,7 +43,7 @@ Position Pinky::target(const GameState & gameState) const { targetPosition.y += 4; break; case Direction::NONE: - assert("Pacman should be moving!"); + assert(false && "Pacman should be moving!"); break; } return gridPositionToPosition(targetPosition);