noch mehr

This commit is contained in:
Johannes Theiner 2018-04-09 21:14:12 +02:00
parent 69d767ce42
commit d71ec42bce
1 changed files with 2 additions and 2 deletions

View File

@ -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];
}