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
556ea391
Commit
556ea391
authored
Nov 02, 2012
by
Ian Lance Taylor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
runtime: Fix reflect.Call support for 64-bit ints.
From-SVN: r193110
parent
1a34066e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
libgo/runtime/go-reflect-call.c
+7
-7
No files found.
libgo/runtime/go-reflect-call.c
View file @
556ea391
...
...
@@ -75,15 +75,15 @@ go_slice_to_ffi (
const
struct
__go_slice_type
*
descriptor
__attribute__
((
unused
)))
{
ffi_type
*
ret
;
ffi_type
*
intgo
;
ffi_type
*
ffi_
intgo
;
ret
=
(
ffi_type
*
)
__go_alloc
(
sizeof
(
ffi_type
));
ret
->
type
=
FFI_TYPE_STRUCT
;
ret
->
elements
=
(
ffi_type
**
)
__go_alloc
(
4
*
sizeof
(
ffi_type
*
));
ret
->
elements
[
0
]
=
&
ffi_type_pointer
;
intgo
=
sizeof
(
intgo
)
==
4
?
&
ffi_type_sint32
:
&
ffi_type_sint64
;
ret
->
elements
[
1
]
=
intgo
;
ret
->
elements
[
2
]
=
intgo
;
ffi_
intgo
=
sizeof
(
intgo
)
==
4
?
&
ffi_type_sint32
:
&
ffi_type_sint64
;
ret
->
elements
[
1
]
=
ffi_
intgo
;
ret
->
elements
[
2
]
=
ffi_
intgo
;
ret
->
elements
[
3
]
=
NULL
;
return
ret
;
}
...
...
@@ -117,14 +117,14 @@ static ffi_type *
go_string_to_ffi
(
void
)
{
ffi_type
*
ret
;
ffi_type
*
intgo
;
ffi_type
*
ffi_
intgo
;
ret
=
(
ffi_type
*
)
__go_alloc
(
sizeof
(
ffi_type
));
ret
->
type
=
FFI_TYPE_STRUCT
;
ret
->
elements
=
(
ffi_type
**
)
__go_alloc
(
3
*
sizeof
(
ffi_type
*
));
ret
->
elements
[
0
]
=
&
ffi_type_pointer
;
intgo
=
sizeof
(
intgo
)
==
4
?
&
ffi_type_sint32
:
&
ffi_type_sint64
;
ret
->
elements
[
1
]
=
intgo
;
ffi_
intgo
=
sizeof
(
intgo
)
==
4
?
&
ffi_type_sint32
:
&
ffi_type_sint64
;
ret
->
elements
[
1
]
=
ffi_
intgo
;
ret
->
elements
[
2
]
=
NULL
;
return
ret
;
}
...
...
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