summaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorsiddhesh <siddhesh>2012-09-27 08:57:14 +0000
committersiddhesh <siddhesh>2012-09-27 08:57:14 +0000
commit7ac6308af5ea6b4583930da73a2c184e0bbccc98 (patch)
tree18f3d3b38374fbbb40fa49ebb665d531d55e5242 /gdb/valops.c
parentd18178c13a938cd8a5e57475b5063fbe84aa02e4 (diff)
downloadgdb-7ac6308af5ea6b4583930da73a2c184e0bbccc98.tar.gz
* gdbtypes.c (lookup_array_range_type): Expand parameters
LOW_BOUND and HIGH_BOUND to LONGEST. (lookup_string_range_type): Likewise. * gdbtypes.h (lookup_array_range_type): Likewise. (lookup_string_range_type): Likewise. * valops.c (value_cstring): Expand parameter LEN to ssize_t. Expand HIGHBOUND to ssize_t. (value_string): Likewise. * value.h (value_cstring): Expand parameter LEN to ssize_t. (value_string): Likewise.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index 75995ac9f6b..502fb0d1f07 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -1838,11 +1838,11 @@ value_array (int lowbound, int highbound, struct value **elemvec)
}
struct value *
-value_cstring (char *ptr, int len, struct type *char_type)
+value_cstring (char *ptr, ssize_t len, struct type *char_type)
{
struct value *val;
int lowbound = current_language->string_lower_bound;
- int highbound = len / TYPE_LENGTH (char_type);
+ ssize_t highbound = len / TYPE_LENGTH (char_type);
struct type *stringtype
= lookup_array_range_type (char_type, lowbound, highbound + lowbound - 1);
@@ -1861,11 +1861,11 @@ value_cstring (char *ptr, int len, struct type *char_type)
string may contain embedded null bytes. */
struct value *
-value_string (char *ptr, int len, struct type *char_type)
+value_string (char *ptr, ssize_t len, struct type *char_type)
{
struct value *val;
int lowbound = current_language->string_lower_bound;
- int highbound = len / TYPE_LENGTH (char_type);
+ ssize_t highbound = len / TYPE_LENGTH (char_type);
struct type *stringtype
= lookup_string_range_type (char_type, lowbound, highbound + lowbound - 1);