Use value_compare_3way instead of compare_values_short in find dialog
authorJohn Darrington <john@darrington.wattle.id.au>
Wed, 3 Dec 2008 23:46:36 +0000 (08:46 +0900)
committerJohn Darrington <john@darrington.wattle.id.au>
Wed, 3 Dec 2008 23:46:36 +0000 (08:46 +0900)
src/ui/gui/find-dialog.c

index 3c54cac4cc554bfce3cb717efd516b95421fda9b..66d3a2cd19709e8c92be02564749bfa41b6cde94 100644 (file)
@@ -464,7 +464,7 @@ value_compare (const struct comparator *cmptr,
               const union value *v)
 {
   const struct value_comparator *vc = (const struct value_comparator *) cmptr;
-  return 0 == compare_values_short (v, vc->pattern, cmptr->var);
+  return 0 == value_compare_3way (v, vc->pattern, var_get_width (cmptr->var));
 }