Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
cab39676
Unverified
Commit
cab39676
authored
Jul 16, 2018
by
Salvatore Sanfilippo
Committed by
GitHub
Jul 16, 2018
Browse files
Merge pull request #5127 from oranagra/sds_req_type
bugfix in sdsReqType creating 64bit sds headers on 32bit systems
parents
f9c84d6d
b05a22e2
Changes
1
Show whitespace changes
Inline
Side-by-side
src/sds.c
View file @
cab39676
...
@@ -67,8 +67,10 @@ static inline char sdsReqType(size_t string_size) {
...
@@ -67,8 +67,10 @@ static inline char sdsReqType(size_t string_size) {
#if (LONG_MAX == LLONG_MAX)
#if (LONG_MAX == LLONG_MAX)
if
(
string_size
<
1ll
<<
32
)
if
(
string_size
<
1ll
<<
32
)
return
SDS_TYPE_32
;
return
SDS_TYPE_32
;
#endif
return
SDS_TYPE_64
;
return
SDS_TYPE_64
;
#else
return
SDS_TYPE_32
;
#endif
}
}
/* Create a new sds string with the content specified by the 'init' pointer
/* Create a new sds string with the content specified by the 'init' pointer
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment