On 6/20/24 11:06, Paolo Bonzini wrote:
On 6/19/24 00:46, Roman Kiryanov wrote:
void* pointer arithmetic is not in the
C standard. This change allows using
the QEMU headers with a C++ compiler.

Google-Bug-Id: 331190993
Change-Id: I5a064853429f627c17a9213910811dea4ced6174
Signed-off-by: Roman Kiryanov <r...@google.com>

Would it work instead to declare MemoryRegionCache's ptr field as char*?

I prefer to use char* only where there are strings. For unstructured data such as MemoryRegionCache, void* is more appropriate.


r~

Reply via email to