mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
MSVC compatiblity: Use a char* pointer for the memcpy() input argument.
This is required by MSVC because we do some pointer arithmetic in the memcpy() argument, but in order to do this, MSVC wants to know the pointed-to type of the pointer because pointer arithmetic increases the pointer not by a number a bytes but a number of sizeof(type). MSVC thinks for void* it doesn't count bytes. We achieve the desired effect by using a char* pointer so that bytes are counted. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18752 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
1e7ecef77f
commit
ea5fb548c5
@ -720,7 +720,7 @@ kvp_frame_binary_end_handler(gpointer data_for_children,
|
||||
gpointer parent_data, gpointer global_data,
|
||||
gpointer *result, const gchar *tag)
|
||||
{
|
||||
void *data;
|
||||
char *data;
|
||||
guint64 total_size;
|
||||
guint64 pos;
|
||||
kvp_value *kvpv;
|
||||
|
Loading…
Reference in New Issue
Block a user