mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
fix a funny bug that integer left shift more than 32 bit, you will get a wrap around
This commit is contained in:
parent
23b04f4dae
commit
2bdc45375e
@ -158,11 +158,11 @@ public class Request {
|
||||
}
|
||||
|
||||
private final void setRevertOnError(boolean revertOnError) {
|
||||
_flags |= (revertOnError ? 1 : 0) << FLAG_REVERT_ON_ERROR;
|
||||
_flags |= (revertOnError ? FLAG_REVERT_ON_ERROR : 0);
|
||||
}
|
||||
|
||||
private final void setFromServer(boolean fromServer) {
|
||||
_flags |= (fromServer ? 1 : 0) << FLAG_FROM_SERVER;
|
||||
private final void setFromServer(boolean fromServer) {
|
||||
_flags |= (fromServer ? FLAG_FROM_SERVER : 0);
|
||||
}
|
||||
|
||||
public long getManagementServerId() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user