Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
shrapnel
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
shrapnel
Commits
7d8a6d95
Commit
7d8a6d95
authored
Aug 01, 2012
by
Sam Rushing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unnecessary memset removed
parent
ef388ade
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
coro/asn1/ber.pyx
coro/asn1/ber.pyx
+1
-2
No files found.
coro/asn1/ber.pyx
View file @
7d8a6d95
...
...
@@ -41,7 +41,7 @@
# class wrappers.
from
cpython
cimport
PyBytes_FromStringAndSize
,
PyNumber_Long
,
PyLong_Check
from
libc.string
cimport
memcpy
,
memset
from
libc.string
cimport
memcpy
from
libc.stdint
cimport
uint64_t
,
int16_t
import
sys
...
...
@@ -201,7 +201,6 @@ cdef _encode_double (double f):
cdef
int16_t
exp
=
((
x64
>>
52
)
&
0x7ff
)
-
(
1023
+
52
)
cdef
uint64_t
man
=
(
x64
&
MANTISSA_MASK
)
cdef
unsigned
char
result
[
10
]
memset
(
<
void
*>&
result
[
0
],
0
,
10
);
# bit 8 says binary encoding
result
[
0
]
=
0b10000000
if
negative
:
...
...
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