One less local variable in marshalls
This commit is contained in:
parent
cff89fc4e4
commit
83acd5f17e
1 changed files with 2 additions and 3 deletions
|
@ -850,17 +850,16 @@ Error encode_variant(const Variant &p_variant, uint8_t *r_buffer, int &r_len, bo
|
|||
} break;
|
||||
case Variant::INT: {
|
||||
|
||||
int64_t val = p_variant;
|
||||
if (flags & ENCODE_FLAG_64) {
|
||||
//64 bits
|
||||
if (buf) {
|
||||
encode_uint64(val, buf);
|
||||
encode_uint64(p_variant.operator int64_t(), buf);
|
||||
}
|
||||
|
||||
r_len += 8;
|
||||
} else {
|
||||
if (buf) {
|
||||
encode_uint32(int32_t(val), buf);
|
||||
encode_uint32(p_variant.operator int32_t(), buf);
|
||||
}
|
||||
|
||||
r_len += 4;
|
||||
|
|
Loading…
Reference in a new issue