mirror of
git://git.savannah.nongnu.org/eliot.git
synced 2024-12-25 21:59:30 +01:00
listdic: fix an old bug with the -x option
This commit is contained in:
parent
d9e85c99ed
commit
6a70d28d28
1 changed files with 3 additions and 2 deletions
|
@ -108,9 +108,10 @@ static void printHexa(const Dictionary &iDic)
|
||||||
{
|
{
|
||||||
ee.e = *reinterpret_cast<const DicEdge*>(iDic.getEdgeAt(i));
|
ee.e = *reinterpret_cast<const DicEdge*>(iDic.getEdgeAt(i));
|
||||||
|
|
||||||
printf("0x%04lx %08x |%4d ptr=%8d t=%d l=%d chr=%2d (%c)\n",
|
printf("0x%04lx %08x |%4d ptr=%8d t=%d l=%d chr=%2d (%lc)\n",
|
||||||
(unsigned long)i*sizeof(ee), (unsigned int)(ee.s),
|
(unsigned long)i*sizeof(ee), (unsigned int)(ee.s),
|
||||||
i, ee.e.ptr, ee.e.term, ee.e.last, ee.e.chr, ee.e.chr + 'a' - 1);
|
i, ee.e.ptr, ee.e.term, ee.e.last, ee.e.chr,
|
||||||
|
ee.e.chr == 0 ? L'-' : iDic.getHeader().getCharFromCode(ee.e.chr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue