diff options
| author | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-06 18:28:21 +0000 |
|---|---|---|
| committer | ian <ian@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-11-06 18:28:21 +0000 |
| commit | c19ea58f4c22885970a0bfbed4086d53df4418da (patch) | |
| tree | 89ff7fdde0dc578287fb6c80a46652eaf78f3ddf /libgo/go/syscall | |
| parent | 0b6b034c45b5e378d9fcc2459b2d6872c7e5ef00 (diff) | |
| download | ppe42-gcc-c19ea58f4c22885970a0bfbed4086d53df4418da.tar.gz ppe42-gcc-c19ea58f4c22885970a0bfbed4086d53df4418da.zip | |
compiler, libgo: Fixes to prepare for 64-bit int.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@193254 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgo/go/syscall')
| -rw-r--r-- | libgo/go/syscall/signame.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libgo/go/syscall/signame.c b/libgo/go/syscall/signame.c index 5ff0b09dbb7..c2d3b9fac70 100644 --- a/libgo/go/syscall/signame.c +++ b/libgo/go/syscall/signame.c @@ -10,10 +10,10 @@ #include "arch.h" #include "malloc.h" -String Signame (int sig) asm ("syscall.Signame"); +String Signame (intgo sig) asm ("syscall.Signame"); String -Signame (int sig) +Signame (intgo sig) { const char* s = NULL; char buf[100]; @@ -27,7 +27,7 @@ Signame (int sig) if (s == NULL) { - snprintf(buf, sizeof buf, "signal %d", sig); + snprintf(buf, sizeof buf, "signal %ld", (long) sig); s = buf; } len = __builtin_strlen (s); |

