[Cbe-oss-dev] [PATCH] libspe, libspe2: Fix C99 function table

Kazunori Asayama asayama at sm.sony.co.jp
Tue Dec 19 17:37:15 EST 2006


Attached is a patch to fix the following bug in libspe2 2.0.1:

  - Offloaded 'getc' and 'getchar' do not work because of an error in
    C99 function table.

There is the same problem in libspe 1.2.0, and it can be fixed in the
same way as this patch.

----
Index: libspe2/spebase/default_c99_handler.c
===================================================================
--- libspe2.orig/spebase/default_c99_handler.c
+++ libspe2/spebase/default_c99_handler.c
@@ -1945,8 +1945,8 @@ int (*default_c99_funcs[SPE_C99_NR_OPCOD
 	default_c99_handler_fsetpos,
 	default_c99_handler_ftell,
 	default_c99_handler_fwrite,
-	default_c99_handler_getchar,
 	default_c99_handler_getc,
+	default_c99_handler_getchar,
 	default_c99_handler_gets,
 	default_c99_handler_perror,
 	default_c99_handler_putc,



More information about the cbe-oss-dev mailing list