Menu

#26 MagicMimeEntryOperation.CLEAR doesn't work

open
Code (14)
5
2010-04-24
2010-04-24
No

Currently (2.1.3), this operation is implemented as (for example):

long maskedFound = found & contentNumber;
boolean result = (maskedFound ^ contentNumber) == 0;

But this yields exactly the same results as MagicMimeEntryOperation.AND. The corrent way would be:

long maskedFound = found & contentNumber;
boolean result = (maskedFound ^ contentNumber) == contentNumber;

Discussion


Log in to post a comment.

MongoDB Logo MongoDB