Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
pikelang
pike
Commits
1afd765b
Commit
1afd765b
authored
Jul 22, 2020
by
Henrik (Grubba) Grubbström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Standards.ASN1.Types: Fixed some warnings.
Fixes some of
#10041
.
parent
2317b255
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lib/modules/Standards.pmod/ASN1.pmod/Types.pmod
lib/modules/Standards.pmod/ASN1.pmod/Types.pmod
+3
-3
No files found.
lib/modules/Standards.pmod/ASN1.pmod/Types.pmod
View file @
1afd765b
...
...
@@ -515,7 +515,7 @@ class BitString
{
value = value[..(len + 7)/8];
unused = [int(0..7)]((- len) % 8);
value[-1] &= 256-(1<<unused);
value[-1] &=
[int(8bit)](
256-(1<<unused)
)
;
} else {
unused = 0;
value = "";
...
...
@@ -723,7 +723,7 @@ class Identifier
if( !objectp(other) ||
(this_program != object_program(other)) )
return 0;
array oid = ([object(Identifier)]other)->id;
array
(int)
oid = ([object(Identifier)]other)->id;
for( int i; i<min(sizeof(id),sizeof(oid)); i++ )
{
if( id[i] < oid[i] ) return 1;
...
...
@@ -948,7 +948,7 @@ class UTC
{
if( !value || sizeof(value)!=13 ) error("Data not UTC date string.\n");
array t = (array(int))(value[..<1]/2);
array
(int)
t = (array(int))(value[..<1]/2);
if(t[0]>49)
t[0]+=1900;
else
...
...
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