[retro-gtk/wip/aplazas/controller] module: Fix the prototype of serialization funcs



commit 0ca4afab3c9b9e6083c1f94853a1be90facbf57b
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Oct 11 21:21:11 2017 +0200

    module: Fix the prototype of serialization funcs
    
    The length of the arrays was wrongly set as gint instead of gsize.

 retro-gtk/retro-module.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/retro-gtk/retro-module.h b/retro-gtk/retro-module.h
index ac0bde6..5056fad 100644
--- a/retro-gtk/retro-module.h
+++ b/retro-gtk/retro-module.h
@@ -17,8 +17,8 @@
 G_BEGIN_DECLS
 
 typedef gboolean (*RetroLoadGame) (RetroGameInfo *game);
-typedef gboolean (*RetroSerialize) (guint8 *data, gint length);
-typedef gboolean (*RetroUnserialize) (guint8 *data, gint length);
+typedef gboolean (*RetroSerialize) (guint8 *data, gsize size);
+typedef gboolean (*RetroUnserialize) (guint8 *data, gsize size);
 typedef gsize (*RetroGetMemorySize) (RetroMemoryType id);
 typedef gsize (*RetroSerializeSize) ();
 typedef guint (*RetroApiVersion) ();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]