The problem is in dbStaticLib.c line 2334 (dbParseLink):
/* Link may be an array constant */ if (pstr[0] == '[' && pstr[len-1] == ']' && (strchr(pstr, ',') || strchr(pstr, '"'))) { pinfo->ltype = CONSTANT; return 0; }
This demands that arrays contain at least one comma or quote. So 1 element string arrays are ok but one element numeric arrays not? Why?
[42] and [] sould be are valid arrays.
The problem is in dbStaticLib.c line 2334 (dbParseLink):
/* Link may be an array constant */
(strchr( pstr, ',') || strchr(pstr, '"'))) {
pinfo- >ltype = CONSTANT;
if (pstr[0] == '[' && pstr[len-1] == ']' &&
return 0;
}
This demands that arrays contain at least one comma or quote. So 1 element string arrays are ok but one element numeric arrays not? Why?
[42] and [] sould be are valid arrays.