Alexander Bergolth (leo@strike.wu-wien.ac.at)
Tue, 19 Jan 1999 17:22:19 +0100 (MEZ)
* List: htdig3-dev@sob.htdig.org
Hi!
Since your change to DocumentRef::Serialize (saving space when lengths can
fit in an unsigned char or unsigned short), it doesn't compile on AIX
anymore.
It crashes in line 464 of htcommon/DocumentRef.cc because it cannot
convert an int to "ReferenceState".
Its the getnum macro in
case DOC_STATE:
getnum(x, s, docState);
break;
docState is an enum and enums can only be converted to integers but not
the other way around.
This illegal conversion is done in line 307 and 402 in the getnum macro.
(The var = (int) ... lines.)
Btw. this conversion shouldn't be allowed by gcc too:
The gcc-info-file says:
`-fenum-int-equiv'
Anachronistically permit implicit conversion of `int' to
enumeration types. Current C++ allows conversion of `enum' to
`int', but not the other way around.
Cheers,
Leo
-----------------------------------------------------------------------
Alexander (Leo) Bergolth leo@leo.wu-wien.ac.at
WU-Wien - Zentrum fuer Informatikdienste http://leo.wu-wien.ac.at
Info Center
In a world without walls and fences, who needs windows and gates?
This archive was generated by hypermail 2.0b3 on Thu Feb 04 1999 - 22:13:08 PST