mirror of
https://github.com/holub/mame
synced 2025-05-17 03:10:43 +03:00
Since previous fix made lot of issues, found better solution for this astring bool problem (no whatsnew)
This commit is contained in:
parent
ca59516c2f
commit
82c98dfa1b
@ -2753,7 +2753,7 @@ UINT32 device_debug::dasm_wrapped(astring &buffer, offs_t pc)
|
||||
|
||||
// disassemble to our buffer
|
||||
buffer.expand(200);
|
||||
return disassemble(buffer, pc, opbuf, argbuf);
|
||||
return disassemble(buffer.text, pc, opbuf, argbuf);
|
||||
}
|
||||
|
||||
|
||||
|
@ -333,7 +333,7 @@ public:
|
||||
astring &reset() { return cpy(""); }
|
||||
astring &expand(int length) { astring_expand(this, length); return *this; }
|
||||
|
||||
operator char *() { return (this->text[0] != 0) ? this->text : NULL; }
|
||||
operator bool() const { return this->text[0] != 0; }
|
||||
operator const char *() const { return astring_c(this); }
|
||||
const char *cstr() const { return astring_c(this); }
|
||||
int len() const { return astring_len(this); }
|
||||
|
Loading…
Reference in New Issue
Block a user