Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
PPSi
Commits
9903624c
Commit
9903624c
authored
Sep 02, 2016
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proto-standard/math: print the mysterious negative value
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
8d3df49c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
arith.c
proto-standard/arith.c
+4
-2
No files found.
proto-standard/arith.c
View file @
9903624c
...
@@ -48,8 +48,10 @@ int from_TimeInternal(TimeInternal *internal, Timestamp *external)
...
@@ -48,8 +48,10 @@ int from_TimeInternal(TimeInternal *internal, Timestamp *external)
if
((
internal
->
seconds
&
~
INT_MAX
)
||
if
((
internal
->
seconds
&
~
INT_MAX
)
||
(
internal
->
nanoseconds
&
~
INT_MAX
))
{
(
internal
->
nanoseconds
&
~
INT_MAX
))
{
pp_error
(
"Negative value cannot be converted into "
pp_error
(
"Negative value (%08x.%08x) cannot be converted "
"timestamp
\n
"
);
"into timestamp
\n
"
,
internal
->
seconds
,
internal
->
nanoseconds
);
return
-
1
;
return
-
1
;
}
else
{
}
else
{
external
->
secondsField
.
lsb
=
internal
->
seconds
;
external
->
secondsField
.
lsb
=
internal
->
seconds
;
...
...
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