X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Ftrace_parser.cpp;h=7a8c4f96e551802cfca9d8a85ae5f597e19629d5;hb=8b58e2fc73717437867a3a944dd34c4e917af9e7;hp=3b159017eabc4c5b5be76d7e138d14ee320bff39;hpb=3662cf3d9f8838e6c19d4606f5a5d800fb66d61a;p=apitrace diff --git a/common/trace_parser.cpp b/common/trace_parser.cpp index 3b15901..7a8c4f9 100644 --- a/common/trace_parser.cpp +++ b/common/trace_parser.cpp @@ -833,7 +833,7 @@ Parser::read_sint(void) { c = read_byte(); switch (c) { case trace::TYPE_SINT: - return -read_uint(); + return -(signed long long)read_uint(); case trace::TYPE_UINT: return read_uint(); default: