|
From: Stuart R. <st...@Cs...> - 2004-06-29 13:51:55
|
> Not sure whether it's this, but it doesn't look right:
> char *DataCell::get_string() {
> switch (type) {
> case CHAR_TYPE:
> return (char*)val.charval; //<- returns a byte as a ptr to a '\0'
> // terminated string
> }
> }
Whoops. That's my bad C knowledge coming out. Hehehe. Thanks. I'll change
it.
later,
Stuart
---
digimail: st...@tr...
electromagic-interweb: http://www.cs.nott.ac.uk/~str
This message has been scanned but we cannot guarantee that it and any
attachments are free from viruses or other damaging content: you are
advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation.
|