Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
StackExchange.Redis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
StackExchange.Redis
Commits
5386cd8a
Commit
5386cd8a
authored
Jun 28, 2018
by
Marc Gravell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feedback from commit review
parent
420a024f
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
RawResult.cs
StackExchange.Redis/StackExchange/Redis/RawResult.cs
+3
-4
RedisValue.cs
StackExchange.Redis/StackExchange/Redis/RedisValue.cs
+2
-2
No files found.
StackExchange.Redis/StackExchange/Redis/RawResult.cs
View file @
5386cd8a
...
...
@@ -125,16 +125,15 @@ internal RedisValue AsRedisValue()
public
void
Recycle
(
int
limit
=
-
1
)
{
var
arr
=
_itemsOversized
;
if
(
limit
<
0
)
limit
=
_itemsCount
;
if
(
arr
!=
null
)
{
if
(
limit
<
0
)
limit
=
_itemsCount
;
for
(
int
i
=
0
;
i
<
limit
;
i
++)
{
arr
[
i
].
Recycle
();
}
ArrayPool
<
RawResult
>.
Shared
.
Return
(
arr
,
clearArray
:
false
);
}
if
(
_itemsOversized
!=
null
)
ArrayPool
<
RawResult
>.
Shared
.
Return
(
_itemsOversized
,
clearArray
:
false
);
}
internal
unsafe
bool
IsEqual
(
byte
[]
expected
)
...
...
StackExchange.Redis/StackExchange/Redis/RedisValue.cs
View file @
5386cd8a
...
...
@@ -513,10 +513,10 @@ internal static RedisValue TryParse(object obj)
case
StorageType
.
Double
:
return
value
.
OverlappedValueDouble
;
case
StorageType
.
String
:
if
(
TryParseInt64
((
string
)
value
.
_objectOrSentinel
,
out
var
f64
))
return
f64
;
if
(
Format
.
TryParseDouble
((
string
)
value
.
_objectOrSentinel
,
out
var
f64
))
return
f64
;
break
;
case
StorageType
.
Raw
:
if
(
TryParse
Int64
(
value
.
_memory
.
Span
,
out
f64
))
return
f64
;
if
(
TryParse
Double
(
value
.
_memory
.
Span
,
out
f64
))
return
f64
;
break
;
}
throw
new
InvalidCastException
();
...
...
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