From: Arvid Norlander Date: Fri, 21 Nov 2008 14:03:03 +0000 (-0500) Subject: Fix the signedness of ick_iffi_befungeString. X-Git-Tag: 0.29~164 X-Git-Url: http://thyrsus.com/gitweb/?a=commitdiff_plain;h=26b043304c30feb48a9f8f0aae180a6045b6b0b9;p=intercal.git Fix the signedness of ick_iffi_befungeString. --- diff --git a/etc/IFFI/IFFI.c b/etc/IFFI/IFFI.c index d6324b8..86c8fe1 100644 --- a/etc/IFFI/IFFI.c +++ b/etc/IFFI/IFFI.c @@ -62,7 +62,7 @@ void ick_interpreter_run(void) perror("Couldn't create funge space!?"); exit(EXIT_FAILURE); } - fungespace_load_string((const unsigned char*)ick_iffi_befungeString); + fungespace_load_string(ick_iffi_befungeString); iffiIP = ip_create(); if (iffiIP == NULL) { perror("Couldn't create instruction pointer!?"); diff --git a/etc/IFFI/IFFI.h b/etc/IFFI/IFFI.h index 60707cb..ffd7a9d 100644 --- a/etc/IFFI/IFFI.h +++ b/etc/IFFI/IFFI.h @@ -65,7 +65,7 @@ extern int ick_iffi_breakloop; extern int ick_iffi_inmarkmode; // Communication variables with the compiled .cio file -extern const char * ick_iffi_befungeString; +extern const unsigned char * ick_iffi_befungeString; // Communication variables with the runtime library extern int ick_printflow; diff --git a/pit/explib/ecto_b98.c b/pit/explib/ecto_b98.c index 936b30b..1b652c5 100644 --- a/pit/explib/ecto_b98.c +++ b/pit/explib/ecto_b98.c @@ -87,7 +87,7 @@ uint32_t ick_iffi_linelabel=0; int ick_iffi_breakloop=0; /* becomes 1 when IFFI's loaded or mark-mode ends */ int ick_iffi_inmarkmode=0; -extern const char* ick_iffi_befungeString; +extern const unsigned char* ick_iffi_befungeString; extern long long ick_iffi_markerposns[][2]; extern int ick_iffi_markercount; diff --git a/src/perpet.c b/src/perpet.c index 2c9d32c..468c95f 100644 --- a/src/perpet.c +++ b/src/perpet.c @@ -526,7 +526,7 @@ static void handle_befunge98(char *libbuf, size_t libbuf_size, if(!((of = ick_debfopen(outputfilename,"w")))) ick_lose(IE888,-1,(const char *)NULL); - fprintf(of,"const char* ick_iffi_befungeString=\n\""); + fprintf(of,"const unsigned char* ick_iffi_befungeString=\n\""); x=0; y=0; jlb=0; for(;;)