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
hiredis
Commits
1ac8fca3
Unverified
Commit
1ac8fca3
authored
Aug 29, 2019
by
Mark Nunberg
Committed by
GitHub
Aug 29, 2019
Browse files
Merge pull request #706 from yossigo/fix/msvc
Fix MSVC build.
parents
2020f6f3
28759c4b
Changes
1
Hide whitespace changes
Inline
Side-by-side
read.c
View file @
1ac8fca3
...
...
@@ -31,10 +31,10 @@
#include "fmacros.h"
#include <string.h>
#include <strings.h>
#include <stdlib.h>
#ifndef _MSC_VER
#include <unistd.h>
#include <strings.h>
#endif
#include <assert.h>
#include <errno.h>
...
...
@@ -44,6 +44,7 @@
#include "read.h"
#include "sds.h"
#include "win32.h"
static
void
__redisReaderSetError
(
redisReader
*
r
,
int
type
,
const
char
*
str
)
{
size_t
len
;
...
...
@@ -294,9 +295,9 @@ static int processLineItem(redisReader *r) {
buf
[
len
]
=
'\0'
;
if
(
strcasecmp
(
buf
,
",inf"
)
==
0
)
{
d
=
1
.
0
/
0
.
0
;
/* Positive infinite. */
d
=
INFINITY
;
/* Positive infinite. */
}
else
if
(
strcasecmp
(
buf
,
",-inf"
)
==
0
)
{
d
=
-
1
.
0
/
0
.
0
;
/* Nevative infinite. */
d
=
-
INFINITY
;
/* Nevative infinite. */
}
else
{
d
=
strtod
((
char
*
)
buf
,
&
eptr
);
if
(
buf
[
0
]
==
'\0'
||
eptr
[
0
]
!=
'\0'
||
isnan
(
d
))
{
...
...
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