Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
tarantool
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
tarantool
Commits
76c21992
Commit
76c21992
authored
9 years ago
by
Eugene Leonovich
Browse files
Options
Downloads
Patches
Plain Diff
Tweak msgpack.encode_int
E.g. `-128` is packed as `d1ff80` instead of `d080`.
parent
5dffb30e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/lua/msgpackffi.lua
+3
-3
3 additions, 3 deletions
src/lua/msgpackffi.lua
with
3 additions
and
3 deletions
src/lua/msgpackffi.lua
+
3
−
3
View file @
76c21992
...
...
@@ -104,11 +104,11 @@ local function encode_int(buf, num)
else
if
num
>=
-
0x20
then
encode_fix
(
buf
,
0xe0
,
num
)
elseif
num
>=
-
0x
7f
then
elseif
num
>=
-
0x
80
then
encode_u8
(
buf
,
0xd0
,
num
)
elseif
num
>=
-
0x
7fff
then
elseif
num
>=
-
0x
8000
then
encode_u16
(
buf
,
0xd1
,
num
)
elseif
num
>=
-
0x
7fffffff
then
elseif
num
>=
-
0x
80000000
then
encode_u32
(
buf
,
0xd2
,
num
)
else
encode_u64
(
buf
,
0xd3
,
0
LL
+
num
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment