From 6a004e12887609bb993fc164353fa401ff89971b Mon Sep 17 00:00:00 2001 From: Simon Daester Date: Mon, 19 Aug 2019 17:28:48 +0200 Subject: [PATCH] Corrected variables in Init() to mx, my. (#1501) It doesn't make sense otherwise --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 8e2edf1..674f162 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -20095,7 +20095,7 @@ and errors (when we didn't deal correctly with semi-constructed objects consiste if (data) { return false; } - data = (char*) malloc(x*y*sizeof(int)); + data = (char*) malloc(mx*my*sizeof(int)); return data != nullptr; }