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
beca20d2
Commit
beca20d2
authored
Oct 20, 2003
by
Joseph Myers
Committed by
Joseph Myers
Oct 20, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* objc/hash.h (hash_string): Don't use a cast as an lvalue.
From-SVN: r72722
parent
d4d1ebc1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
libobjc/ChangeLog
+4
-0
libobjc/objc/hash.h
+3
-3
No files found.
libobjc/ChangeLog
View file @
beca20d2
2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
* objc/hash.h (hash_string): Don't use a cast as an lvalue.
2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* Makefile.in (runtime-info.h): Use MULTIFLAGS.
* Makefile.in (runtime-info.h): Use MULTIFLAGS.
...
...
libobjc/objc/hash.h
View file @
beca20d2
...
@@ -172,10 +172,10 @@ hash_string (cache_ptr cache, const void *key)
...
@@ -172,10 +172,10 @@ hash_string (cache_ptr cache, const void *key)
{
{
unsigned
int
ret
=
0
;
unsigned
int
ret
=
0
;
unsigned
int
ctr
=
0
;
unsigned
int
ctr
=
0
;
const
char
*
ckey
=
key
;
while
(
*
ckey
)
{
while
(
*
(
const
char
*
)
key
)
{
ret
^=
*
ckey
++
<<
ctr
;
ret
^=
*
((
const
char
*
)
key
)
++
<<
ctr
;
ctr
=
(
ctr
+
1
)
%
sizeof
(
void
*
);
ctr
=
(
ctr
+
1
)
%
sizeof
(
void
*
);
}
}
...
...
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