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
08661a65
Commit
08661a65
authored
7 years ago
by
Lev Walkin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use ptrdiff_t
parent
1fc5edb2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
libasn1common/genhash.c
libasn1common/genhash.c
+3
-2
No files found.
libasn1common/genhash.c
View file @
08661a65
...
@@ -58,6 +58,7 @@
...
@@ -58,6 +58,7 @@
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <assert.h>
#include <assert.h>
#include <stddef.h>
#include <errno.h>
#include <errno.h>
#include "genhash.h"
#include "genhash.h"
...
@@ -767,7 +768,7 @@ genhash_empty(genhash_t *h, int freekeys, int freevalues) {
...
@@ -767,7 +768,7 @@ genhash_empty(genhash_t *h, int freekeys, int freevalues) {
unsigned
int
unsigned
int
hashf_int
(
const
void
*
key
)
{
hashf_int
(
const
void
*
key
)
{
return
(
*
(
const
int
*
)
key
^
(
*
(
const
in
t
*
)
key
>>
16
));
return
(
*
(
const
ptrdiff_t
*
)
key
^
(
*
(
const
ptrdiff_
t
*
)
key
>>
16
));
}
}
int
int
...
@@ -777,7 +778,7 @@ cmpf_int (const void *key1, const void *key2) {
...
@@ -777,7 +778,7 @@ cmpf_int (const void *key1, const void *key2) {
unsigned
int
unsigned
int
hashf_void
(
const
void
*
key
)
{
hashf_void
(
const
void
*
key
)
{
return
((
int
)
key
^
((
in
t
)
key
>>
16
));
return
((
ptrdiff_t
)
key
^
((
ptrdiff_
t
)
key
>>
16
));
}
}
int
int
...
...
This diff is collapsed.
Click to expand it.
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