diff --git a/benchmark.py b/benchmark.py index 4a6e9f839b..b75dd4d5a8 100755 --- a/benchmark.py +++ b/benchmark.py @@ -15,7 +15,7 @@ import tempfile @contextlib.contextmanager def GitWorktree(commit): tmpdir = tempfile.mkdtemp() - subprocess.run(['git', 'worktree', 'add', '-q', tmpdir, commit], check=True) + subprocess.run(['git', 'worktree', 'add', '-q', '-d', tmpdir, commit], check=True) cwd = os.getcwd() os.chdir(tmpdir) try: diff --git a/upb/decode.c b/upb/decode.c index a9f1cf548a..416ea25cc5 100644 --- a/upb/decode.c +++ b/upb/decode.c @@ -227,6 +227,7 @@ static const char *decode_varint64(upb_decstate *d, const char *ptr, } } +UPB_FORCEINLINE static const char *decode_varint32(upb_decstate *d, const char *ptr, const char *limit, uint32_t *val) { uint64_t u64;