projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Check token type before trying to match tokid. Fixes PR 12923.
[pspp]
/
src
/
modify-vars.c
diff --git
a/src/modify-vars.c
b/src/modify-vars.c
index 265160f712754bf38ee04fb3b7f5bba63e82e408..fee6d59b840f92afdff88c1a877dc0a15cfc0a6e 100644
(file)
--- a/
src/modify-vars.c
+++ b/
src/modify-vars.c
@@
-348,7
+348,7
@@
compare_variables_given_ordering (const void *a_, const void *b_,
if (ordering->positional)
result = a->index < b->index ? -1 : a->index > b->index;
else
if (ordering->positional)
result = a->index < b->index ? -1 : a->index > b->index;
else
- result = strcmp (a->name, b->name);
+ result = strc
asec
mp (a->name, b->name);
if (!ordering->forward)
result = -result;
return result;
if (!ordering->forward)
result = -result;
return result;
@@
-358,7
+358,7
@@
compare_variables_given_ordering (const void *a_, const void *b_,
struct var_renaming
{
struct variable *var;
struct var_renaming
{
struct variable *var;
- char new_name[
SHORT
_NAME_LEN + 1];
+ char new_name[
LONG
_NAME_LEN + 1];
};
/* A algo_compare_func that compares new_name members in struct
};
/* A algo_compare_func that compares new_name members in struct
@@
-370,7
+370,7
@@
compare_var_renaming_by_new_name (const void *a_, const void *b_,
const struct var_renaming *a = a_;
const struct var_renaming *b = b_;
const struct var_renaming *a = a_;
const struct var_renaming *b = b_;
- return strcmp (a->new_name, b->new_name);
+ return strc
asec
mp (a->new_name, b->new_name);
}
/* Returns true if performing VM on dictionary D would not cause
}
/* Returns true if performing VM on dictionary D would not cause