Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dap-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
11
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dap
dap-sdk
Commits
9195d724
Commit
9195d724
authored
10 months ago
by
Roman Khlopkov
🔜
Browse files
Options
Downloads
Plain Diff
Merge branch 'features-9744' into 'release-5.3'
Features 9744 See merge request
!274
parents
639c34f7
6f603bd9
Loading
Loading
Loading
Pipeline
#40134
passed with stage
in 1 hour, 12 minutes, and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
core/src/dap_math_convert.c
+4
-4
4 additions, 4 deletions
core/src/dap_math_convert.c
with
4 additions
and
4 deletions
core/src/dap_math_convert.c
+
4
−
4
View file @
9195d724
...
...
@@ -441,7 +441,7 @@ const char *dap_uint256_to_char(uint256_t a_uint256, const char **a_frac)
return
s_buf
;
int
l_len
;
if
(
0
<
(
l_len
=
(
l_strlen
-
DATOSHI_DEGREE
))
)
{
memcpy
(
s_buf_frac
,
s_buf
,
l_len
);
memcpy
(
s_buf_frac
+
l_len
+
1
,
s_buf
+
l_len
,
DATOSHI_DEGREE
);
...
...
@@ -456,7 +456,7 @@ const char *dap_uint256_to_char(uint256_t a_uint256, const char **a_frac)
}
l_c1
=
s_buf_frac
+
l_strlen
-
1
;
while
(
*
l_c1
--
==
'0'
&&
*
l_c1
!=
'.'
)
--
l_strlen
;
--
l_strlen
;
s_buf_frac
[
l_strlen
]
=
'\0'
;
*
a_frac
=
s_buf_frac
;
return
s_buf
;
...
...
@@ -492,7 +492,7 @@ const char *dap_uint256_char_to_round_char(char* a_str_decimal, uint8_t a_round_
char
*
l_src_c
=
a_str_decimal
+
l_new_len
,
*
l_dst_c
=
l_res
+
l_new_len
,
l_inc
=
*
l_src_c
>=
'5'
;
while
(
l_src_c
>
a_str_decimal
&&
(
*
l_src_c
>=
'5'
||
l_inc
)
)
{
if
(
*--
l_src_c
==
'9'
)
{
l_inc
=
1
;
...
...
@@ -516,7 +516,7 @@ const char *dap_uint256_char_to_round_char(char* a_str_decimal, uint8_t a_round_
}
else
{
++
l_res
;
}
*
(
l_res
+
l_new_len
)
=
'\0'
;
return
l_res
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment