Signed-off-by: Tomek Grabiec <tgrab...@gmail.com> --- include/vm/bytecode.h | 10 +++++----- vm/bytecode.c | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/include/vm/bytecode.h b/include/vm/bytecode.h index 580b6e0..23c047a 100644 --- a/include/vm/bytecode.h +++ b/include/vm/bytecode.h @@ -16,10 +16,10 @@ int32_t bytecode_read_s32(struct bytecode_buffer *buffer); uint32_t bytecode_read_u32(struct bytecode_buffer *buffer); int32_t bytecode_read_branch_target(unsigned char opc, struct bytecode_buffer *buffer); -uint8_t read_u8(unsigned char *p); -int16_t read_s16(unsigned char *p); -uint16_t read_u16(unsigned char *p); -int32_t read_s32(unsigned char *p); -uint32_t read_u32(unsigned char *p); +uint8_t read_u8(const unsigned char *p); +int16_t read_s16(const unsigned char *p); +uint16_t read_u16(const unsigned char *p); +int32_t read_s32(const unsigned char *p); +uint32_t read_u32(const unsigned char *p); #endif diff --git a/vm/bytecode.c b/vm/bytecode.c index 2f22a51..9b2cedf 100644 --- a/vm/bytecode.c +++ b/vm/bytecode.c @@ -77,22 +77,22 @@ int32_t bytecode_read_branch_target(unsigned char opc, return bytecode_read_s16(buffer); } -uint8_t read_u8(unsigned char *p) +uint8_t read_u8(const unsigned char *p) { return *p; } -int16_t read_s16(unsigned char *p) +int16_t read_s16(const unsigned char *p) { return (int16_t) read_u16(p); } -int32_t read_s32(unsigned char *p) +int32_t read_s32(const unsigned char *p) { return (int32_t) read_u32(p); } -uint16_t read_u16(unsigned char *p) +uint16_t read_u16(const unsigned char *p) { uint16_t result; @@ -102,7 +102,7 @@ uint16_t read_u16(unsigned char *p) return result; } -uint32_t read_u32(unsigned char *p) +uint32_t read_u32(const unsigned char *p) { uint32_t result; -- 1.6.0.6 ------------------------------------------------------------------------------ Enter the BlackBerry Developer Challenge This is your chance to win up to $100,000 in prizes! For a limited time, vendors submitting new applications to BlackBerry App World(TM) will have the opportunity to enter the BlackBerry Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel