]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/compile/compile-c-types.c
gdb: make get_array_bounds return bool
[thirdparty/binutils-gdb.git] / gdb / compile / compile-c-types.c
index 82c9af37b5fb65ccc29dc9db1193f7f6b8854abc..87fc4e55eb2b564eca868354d2388322c5c782fc 100644 (file)
@@ -70,7 +70,7 @@ convert_array (compile_c_instance *context, struct type *type)
     {
       LONGEST low_bound, high_bound, count;
 
-      if (get_array_bounds (type, &low_bound, &high_bound) == 0)
+      if (!get_array_bounds (type, &low_bound, &high_bound))
        count = -1;
       else
        {