Nicolas Cannasse 6 年之前
父節點
當前提交
414d5400c7
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/hlmodule.h
  2. 1 1
      src/main.c

+ 1 - 1
src/hlmodule.h

@@ -108,7 +108,7 @@ typedef struct {
 
 typedef struct jit_ctx jit_ctx;
 
-hl_code *hl_code_read( const unsigned char *data, int size, const char **error_msg );
+hl_code *hl_code_read( const unsigned char *data, int size, char **error_msg );
 void hl_code_free( hl_code *c );
 const uchar *hl_get_ustring( hl_code *c, int index );
 const char* hl_op_name( int op );

+ 1 - 1
src/main.c

@@ -96,7 +96,7 @@ static bool check_reload( main_context *m ) {
 	hl_code *code = load_code(m->file, &error_msg, false);
 	if( code == NULL )
 		return false;
-	hl_module_patch(m, code);
+	hl_module_patch(m->m, code);
 	m->file_time = time;
 	hl_code_free(code);
 	return true;