From 75c3733eb75789761e6383d587c7913b2ad7865e Mon Sep 17 00:00:00 2001 From: Henning Kayser Date: Fri, 21 Jul 2017 18:02:48 +0200 Subject: [PATCH] Fix type warning in log output --- include/ur_modern_driver/ur/state_parser.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/ur_modern_driver/ur/state_parser.h b/include/ur_modern_driver/ur/state_parser.h index 48eda1d..146d93c 100644 --- a/include/ur_modern_driver/ur/state_parser.h +++ b/include/ur_modern_driver/ur/state_parser.h @@ -75,7 +75,7 @@ public: if (!packet->parseWith(sbp)) { - LOG_ERROR("Sub-package parsing of type %d failed!", type); + LOG_ERROR("Sub-package parsing of type %d failed!", static_cast(type)); return false; } @@ -83,7 +83,7 @@ public: if (!sbp.empty()) { - LOG_ERROR("Sub-package of type %d was not parsed completely!", type); + LOG_ERROR("Sub-package of type %d was not parsed completely!", static_cast(type)); sbp.debug(); return false; } @@ -95,4 +95,4 @@ public: typedef URStateParser URStateParser_V1_X; typedef URStateParser URStateParser_V3_0__1; -typedef URStateParser URStateParser_V3_2; \ No newline at end of file +typedef URStateParser URStateParser_V3_2;