projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ubsan: cr16: left shift cannot be represented in type 'int'
[deliverable/binutils-gdb.git]
/
opcodes
/
pj-dis.c
diff --git
a/opcodes/pj-dis.c
b/opcodes/pj-dis.c
index 7d33a6e665a10ea06f6a12085b0b05649ad45307..abac01ea0f503cc4a5a909dfad8ddb6fceda2615 100644
(file)
--- a/
opcodes/pj-dis.c
+++ b/
opcodes/pj-dis.c
@@
-1,5
+1,5
@@
/* pj-dis.c -- Disassemble picoJava instructions.
/* pj-dis.c -- Disassemble picoJava instructions.
- Copyright (C) 1999-20
15
Free Software Foundation, Inc.
+ Copyright (C) 1999-20
20
Free Software Foundation, Inc.
Contributed by Steve Chamberlain, of Transmeta (sac@pobox.com).
This file is part of the GNU opcodes library.
Contributed by Steve Chamberlain, of Transmeta (sac@pobox.com).
This file is part of the GNU opcodes library.
@@
-22,7
+22,7
@@
#include "sysdep.h"
#include <stdio.h>
#include "opcode/pj.h"
#include "sysdep.h"
#include <stdio.h>
#include "opcode/pj.h"
-#include "dis
-asm
.h"
+#include "dis
assemble
.h"
extern const pj_opc_info_t pj_opc_info[512];
extern const pj_opc_info_t pj_opc_info[512];
@@
-32,10
+32,10
@@
get_int (bfd_vma memaddr, int *iptr, struct disassemble_info *info)
unsigned char ival[4];
int status = info->read_memory_func (memaddr, ival, 4, info);
unsigned char ival[4];
int status = info->read_memory_func (memaddr, ival, 4, info);
- *iptr = (ival[0] << 24)
- | (ival[1] << 16)
- | (ival[2] << 8)
-
| (ival[3] << 0
);
+ *iptr = (
((unsigned)
ival[0] << 24)
+
| (ival[1] << 16)
+
| (ival[2] << 8)
+
| (ival[3] << 0)
);
return status;
}
return status;
}
This page took
0.0248 seconds
and
4
git commands to generate.