noch mehr
This commit is contained in:
parent
69d767ce42
commit
d71ec42bce
|
@ -96,8 +96,8 @@ PascalString bitwiseDualAnd(PascalString a, PascalString b) {
|
||||||
PascalString bitwiseHexAnd(PascalString a, PascalString b) {
|
PascalString bitwiseHexAnd(PascalString a, PascalString b) {
|
||||||
PascalString result = {a.length, '0'};
|
PascalString result = {a.length, '0'};
|
||||||
|
|
||||||
for(int i = a.length; i >= 0; --i) {
|
for(int i = b.length; i >= 0; --i) {
|
||||||
if(b.length < i) result.characters[i] = a.characters[i];
|
if(a.length < i) result.characters[i] = a.characters[i];
|
||||||
result.characters[i] = a.characters[i] & b.characters[i];
|
result.characters[i] = a.characters[i] & b.characters[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue