Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
UERANSIM
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
UERANSIM
Commits
59c13021
Commit
59c13021
authored
Dec 03, 2021
by
aligungr
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support for 32-bit architectures
parent
5ace587f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
src/lib/asn/utils.cpp
src/lib/asn/utils.cpp
+4
-4
No files found.
src/lib/asn/utils.cpp
View file @
59c13021
...
@@ -128,24 +128,24 @@ OctetString GetOctetString(const BIT_STRING_t &source)
...
@@ -128,24 +128,24 @@ OctetString GetOctetString(const BIT_STRING_t &source)
uint64_t
GetUnsigned64
(
const
INTEGER_t
&
source
)
uint64_t
GetUnsigned64
(
const
INTEGER_t
&
source
)
{
{
u
int64_t
res
=
0
;
u
nsigned
long
res
=
0
;
if
(
asn_INTEGER2ulong
(
&
source
,
&
res
)
!=
0
)
if
(
asn_INTEGER2ulong
(
&
source
,
&
res
)
!=
0
)
{
{
// ignore the error
// ignore the error
res
=
0
;
res
=
0
;
}
}
return
res
;
return
static_cast
<
uint64_t
>
(
res
)
;
}
}
int64_t
GetSigned64
(
const
INTEGER_t
&
source
)
int64_t
GetSigned64
(
const
INTEGER_t
&
source
)
{
{
int64_t
res
=
0
;
long
res
=
0
;
if
(
asn_INTEGER2long
(
&
source
,
&
res
)
!=
0
)
if
(
asn_INTEGER2long
(
&
source
,
&
res
)
!=
0
)
{
{
// ignore the error
// ignore the error
res
=
0
;
res
=
0
;
}
}
return
res
;
return
static_cast
<
int64_t
>
(
res
)
;
}
}
void
SetUnsigned64
(
uint64_t
value
,
INTEGER_t
&
target
)
void
SetUnsigned64
(
uint64_t
value
,
INTEGER_t
&
target
)
...
...
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