Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
120cdf68
Commit
120cdf68
authored
Jan 20, 2003
by
Josef Zlomek
Committed by
Josef Zlomek
Jan 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* hashtab.c (htab_expand): Fix allocation of new entries.
From-SVN: r61507
parent
5794139a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
libiberty/ChangeLog
+4
-0
libiberty/hashtab.c
+4
-2
No files found.
libiberty/ChangeLog
View file @
120cdf68
2003-01-20 Josef Zlomek <zlomekj@suse.cz>
* hashtab.c (htab_expand): Fix allocation of new entries.
2003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
* Makefile.in (FLAGS_TO_PASS): Also pass DESTDIR.
...
...
libiberty/hashtab.c
View file @
120cdf68
...
...
@@ -306,16 +306,18 @@ htab_expand (htab)
PTR
*
olimit
;
PTR
*
p
;
PTR
*
nentries
;
size_t
nsize
;
oentries
=
htab
->
entries
;
olimit
=
oentries
+
htab
->
size
;
htab
->
size
=
higher_prime_number
(
htab
->
size
*
2
);
n
size
=
higher_prime_number
(
htab
->
size
*
2
);
nentries
=
(
PTR
*
)
(
*
htab
->
alloc_f
)
(
htab
->
size
,
sizeof
(
PTR
*
));
nentries
=
(
PTR
*
)
(
*
htab
->
alloc_f
)
(
nsize
,
sizeof
(
PTR
));
if
(
nentries
==
NULL
)
return
0
;
htab
->
entries
=
nentries
;
htab
->
size
=
nsize
;
htab
->
n_elements
-=
htab
->
n_deleted
;
htab
->
n_deleted
=
0
;
...
...
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