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
2b61d00a
Commit
2b61d00a
authored
May 16, 1995
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(sarray_realloc): Make array index variables size_t.
From-SVN: r9721
parent
2c89fb2e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
gcc/objc/sarray.c
+7
-7
No files found.
gcc/objc/sarray.c
View file @
2b61d00a
/* Sparse Arrays for Objective C dispatch tables
/* Sparse Arrays for Objective C dispatch tables
Copyright (C) 1993 Free Software Foundation, Inc.
Copyright (C) 1993
, 1995
Free Software Foundation, Inc.
This file is part of GNU CC.
This file is part of GNU CC.
...
@@ -218,14 +218,14 @@ void
...
@@ -218,14 +218,14 @@ void
sarray_realloc
(
struct
sarray
*
array
,
int
newsize
)
sarray_realloc
(
struct
sarray
*
array
,
int
newsize
)
{
{
#ifdef OBJC_SPARSE3
#ifdef OBJC_SPARSE3
in
t
old_max_index
=
(
array
->
capacity
-
1
)
/
INDEX_CAPACITY
;
size_
t
old_max_index
=
(
array
->
capacity
-
1
)
/
INDEX_CAPACITY
;
in
t
new_max_index
=
((
newsize
-
1
)
/
INDEX_CAPACITY
);
size_
t
new_max_index
=
((
newsize
-
1
)
/
INDEX_CAPACITY
);
in
t
rounded_size
=
(
new_max_index
+
1
)
*
INDEX_CAPACITY
;
size_
t
rounded_size
=
(
new_max_index
+
1
)
*
INDEX_CAPACITY
;
#else
/* OBJC_SPARSE2 */
#else
/* OBJC_SPARSE2 */
in
t
old_max_index
=
(
array
->
capacity
-
1
)
/
BUCKET_SIZE
;
size_
t
old_max_index
=
(
array
->
capacity
-
1
)
/
BUCKET_SIZE
;
in
t
new_max_index
=
((
newsize
-
1
)
/
BUCKET_SIZE
);
size_
t
new_max_index
=
((
newsize
-
1
)
/
BUCKET_SIZE
);
in
t
rounded_size
=
(
new_max_index
+
1
)
*
BUCKET_SIZE
;
size_
t
rounded_size
=
(
new_max_index
+
1
)
*
BUCKET_SIZE
;
#endif
#endif
...
...
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