Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
49e52a1d
Commit
49e52a1d
authored
Feb 16, 2010
by
Claes Sjofors
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LONG_MIN/MAX changed to INT
parent
c92ff929
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
src/lib/co/src/co_cdh.c
src/lib/co/src/co_cdh.c
+2
-2
src/lib/co/src/co_cdh.h
src/lib/co/src/co_cdh.h
+1
-1
No files found.
src/lib/co/src/co_cdh.c
View file @
49e52a1d
...
@@ -690,8 +690,8 @@ cdh_StringToAttrValue (
...
@@ -690,8 +690,8 @@ cdh_StringToAttrValue (
case
pwr_eType_Int32
:
case
pwr_eType_Int32
:
if
(
*
String
!=
'\0'
)
{
if
(
*
String
!=
'\0'
)
{
i32val
=
strtol
(
String
,
&
endp
,
0
);
i32val
=
strtol
(
String
,
&
endp
,
0
);
if
(
errno
==
ERANGE
||
*
endp
!=
'\0'
||
i32val
>
LONG
_MAX
||
if
(
errno
==
ERANGE
||
*
endp
!=
'\0'
||
i32val
>
INT
_MAX
||
i32val
<
LONG
_MIN
i32val
<
INT
_MIN
)
{
)
{
sts
=
CDH__INVINT32
;
sts
=
CDH__INVINT32
;
break
;
break
;
...
...
src/lib/co/src/co_cdh.h
View file @
49e52a1d
...
@@ -65,7 +65,7 @@ extern "C" {
...
@@ -65,7 +65,7 @@ extern "C" {
#define cdh_cMaxBix 7
#define cdh_cMaxBix 7
#define cdh_cMaxTix 2047
#define cdh_cMaxTix 2047
#define cdh_cMaxTyg 1
#define cdh_cMaxTyg 1
#define cdh_cMaxOix
ULONG
_MAX
#define cdh_cMaxOix
UINT
_MAX
typedef
enum
{
typedef
enum
{
cdh_eVid3_local
=
1
,
cdh_eVid3_local
=
1
,
...
...
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