mirror of
https://review.haiku-os.org/haiku
synced 2025-02-22 13:38:56 +01:00
BPackageInfo: Fix Linux build
... including an actual bug (operator "|" instead of "||").
This commit is contained in:
parent
e6216e372a
commit
bd59e0d00d
@ -14,6 +14,7 @@
|
|||||||
|
|
||||||
#include <File.h>
|
#include <File.h>
|
||||||
#include <Entry.h>
|
#include <Entry.h>
|
||||||
|
#include <Message.h>
|
||||||
#include <package/hpkg/NoErrorOutput.h>
|
#include <package/hpkg/NoErrorOutput.h>
|
||||||
#include <package/hpkg/PackageReader.h>
|
#include <package/hpkg/PackageReader.h>
|
||||||
#include <package/PackageInfoContentHandler.h>
|
#include <package/PackageInfoContentHandler.h>
|
||||||
@ -2145,8 +2146,8 @@ BPackageInfo::_ExtractResolvableExpressions(BMessage* archive,
|
|||||||
error = archive->FindInt32(operatorField, i, &operatorType);
|
error = archive->FindInt32(operatorField, i, &operatorType);
|
||||||
if (error != B_OK)
|
if (error != B_OK)
|
||||||
return error;
|
return error;
|
||||||
if (operatorType < 0
|
if (operatorType < 0
|
||||||
| operatorType > B_PACKAGE_RESOLVABLE_OP_ENUM_COUNT) {
|
|| operatorType > B_PACKAGE_RESOLVABLE_OP_ENUM_COUNT) {
|
||||||
return B_BAD_DATA;
|
return B_BAD_DATA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user