Commit 1aafe332 authored by Nick Craver's avatar Nick Craver

Fix 1/2 doule parse references

parent 4c131058
...@@ -516,7 +516,7 @@ internal static RedisValue TryParse(object obj) ...@@ -516,7 +516,7 @@ internal static RedisValue TryParse(object obj)
if (TryParseInt64((string)value._objectOrSentinel, out var f64)) return f64; if (TryParseInt64((string)value._objectOrSentinel, out var f64)) return f64;
break; break;
case StorageType.Raw: case StorageType.Raw:
if (TryParseInt64(value._memory.Span, out f64)) return f64; if (TryParseDouble(value._memory.Span, out var d64)) return d64;
break; break;
} }
throw new InvalidCastException($"Unable to case from {value.Type} to double"); throw new InvalidCastException($"Unable to case from {value.Type} to double");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment