Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asn1c
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
Libraries
asn1c
Commits
27126181
Commit
27126181
authored
Sep 03, 2012
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove volatile from GeneralizedTime
parent
f5927117
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
skeletons/GeneralizedTime.c
skeletons/GeneralizedTime.c
+8
-9
No files found.
skeletons/GeneralizedTime.c
View file @
27126181
...
...
@@ -314,14 +314,14 @@ asn_GT2time_prec(const GeneralizedTime_t *st, int *frac_value, int frac_digits,
while
(
fd
>
frac_digits
)
fv
/=
10
,
fd
--
;
while
(
fd
<
frac_digits
)
{
int
volatile
new_fv
=
fv
*
10
;
/* GCC 4.x is being too smart without volatile */
if
(
new_fv
/
10
!=
fv
)
{
if
(
fv
<
INT_MAX
/
10
)
{
fv
*=
10
;
fd
++
;
}
else
{
/* Too long precision request */
fv
=
0
;
break
;
}
fv
=
new_fv
,
fd
++
;
}
*
frac_value
=
fv
;
...
...
@@ -447,12 +447,11 @@ asn_GT2time_frac(const GeneralizedTime_t *st, int *frac_value, int *frac_digits,
switch
(
v
)
{
case
0x30
:
case
0x31
:
case
0x32
:
case
0x33
:
case
0x34
:
case
0x35
:
case
0x36
:
case
0x37
:
case
0x38
:
case
0x39
:
new_fvalue
=
fvalue
*
10
+
(
v
-
0x30
);
if
(
new_fvalue
/
10
!=
fvalue
)
{
/* Not enough precision, ignore */
}
else
{
fvalue
=
new_fvalue
;
if
(
fvalue
<
INT_MAX
/
10
)
{
fvalue
=
fvalue
*
10
+
(
v
-
0x30
);
fdigits
++
;
}
else
{
/* Not enough precision, ignore */
}
continue
;
default:
...
...
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