From d71ec42bceac0cd6f5b1b998f420d8b8541018f2 Mon Sep 17 00:00:00 2001 From: Johannes Theiner Date: Mon, 9 Apr 2018 21:14:12 +0200 Subject: [PATCH] noch mehr --- 02_MENT/main_02_MENT.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/02_MENT/main_02_MENT.cpp b/02_MENT/main_02_MENT.cpp index 4844b36..f95e158 100644 --- a/02_MENT/main_02_MENT.cpp +++ b/02_MENT/main_02_MENT.cpp @@ -96,8 +96,8 @@ PascalString bitwiseDualAnd(PascalString a, PascalString b) { PascalString bitwiseHexAnd(PascalString a, PascalString b) { PascalString result = {a.length, '0'}; - for(int i = a.length; i >= 0; --i) { - if(b.length < i) result.characters[i] = a.characters[i]; + for(int i = b.length; i >= 0; --i) { + if(a.length < i) result.characters[i] = a.characters[i]; result.characters[i] = a.characters[i] & b.characters[i]; }