From 210cef7ae2aeb98eec8bfdc8cd0d02ab711669bd Mon Sep 17 00:00:00 2001 From: Rene Rivera Date: Thu, 3 Sep 2020 22:33:02 -0500 Subject: [PATCH] Another attempt at correct cmd length check. --- src/engine/make1.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/engine/make1.cpp b/src/engine/make1.cpp index cfc302214..fe6a94f9c 100644 --- a/src/engine/make1.cpp +++ b/src/engine/make1.cpp @@ -1219,7 +1219,12 @@ static CMD * make1cmds( TARGET * t ) : "contains a line that is too long"; assert( cmd_check_result == EXEC_CHECK_TOO_LONG || cmd_check_result == EXEC_CHECK_LINE_TOO_LONG ); - if (sizeof(size_t) == (sizeof(long int))) + if (sizeof(size_t) == (sizeof(long long int))) + out_printf( + "%s action %s (%lld, max %lld):\n", + object_str( rule->name ), error_message, + cmd_error_length, cmd_error_max_length ); + else if (sizeof(size_t) == (sizeof(long int))) out_printf( "%s action %s (%ld, max %ld):\n", object_str( rule->name ), error_message,