Silence some compilation warnings.

This commit is contained in:
Markus F.X.J. Oberhumer
2010-03-31 02:16:32 +02:00
parent f4f8bd8d42
commit b6a9b0a4c9
4 changed files with 16 additions and 14 deletions
+4 -2
View File
@@ -193,7 +193,8 @@ __packed_struct(Sym)
static unsigned int get_st_bind(unsigned x) { return 0xf & (x>>4); }
static unsigned int get_st_type(unsigned x) { return 0xf & x ; }
static unsigned char make_st_info(unsigned bind, unsigned type) { return (bind<<4) + (0xf & type); }
static unsigned char make_st_info(unsigned bind, unsigned type)
{ return (unsigned char) (((bind<<4) + (0xf & type)) & 0xff); }
__packed_struct_end()
@@ -269,7 +270,8 @@ __packed_struct(Sym)
static unsigned int get_st_bind(unsigned x) { return 0xf & (x>>4); }
static unsigned int get_st_type(unsigned x) { return 0xf & x ; }
static unsigned char make_st_info(unsigned bind, unsigned type) { return (bind<<4) + (0xf & type); }
static unsigned char make_st_info(unsigned bind, unsigned type)
{ return (unsigned char) (((bind<<4) + (0xf & type)) & 0xff); }
__packed_struct_end()