Skip to content

Commit ad415c6

Browse files
2 parents c827634 + d151ec2 commit ad415c6

File tree

4 files changed

+12
-12
lines changed

4 files changed

+12
-12
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ for safe evaluation of Lua code.
77
## Releases
88
| Item | Description |
99
|------|-------------|
10-
|[LuaCEmbedOne.c](https://github.com/OUIsolutions/LuaCEmbed/releases/download/0.8.0/LuaCEmbedOne.c) |One File|
11-
|[LuaCEmbed.c](https://github.com/OUIsolutions/LuaCEmbed/releases/download/0.8.0/LuaCEmbed.c)| Definition|
12-
|[LuaCEmbed.h](https://github.com/OUIsolutions/LuaCEmbed/releases/download/0.8.0/LuaCEmbed.h)| Header|
13-
|[LuaCEmbed.zip](https://github.com/OUIsolutions/LuaCEmbed/releases/download/0.8.0/LuaCEmbed.zip)| Zip Mode|
10+
|[LuaCEmbedOne.c](https://github.com/OUIsolutions/LuaCEmbed/releases/download/0.8.2/LuaCEmbedOne.c) |One File|
11+
|[LuaCEmbed.c](https://github.com/OUIsolutions/LuaCEmbed/releases/download/0.8.2/LuaCEmbed.c)| Definition|
12+
|[LuaCEmbed.h](https://github.com/OUIsolutions/LuaCEmbed/releases/download/0.8.2/LuaCEmbed.h)| Header|
13+
|[LuaCEmbed.zip](https://github.com/OUIsolutions/LuaCEmbed/releases/download/0.8.2/LuaCEmbed.zip)| Zip Mode|
1414

1515
### Most Basic Example
16-
Like all OUI librarys, the LuaCEmbed addopt the ideia of single file lib, so you just need to copy the [LuaCEmbedOne.c](https://github.com/OUIsolutions/LuaCEmbed/releases/download/0.8.0/LuaCEmbedOne.c) file
16+
Like all OUI librarys, the LuaCEmbed addopt the ideia of single file lib, so you just need to copy the [LuaCEmbedOne.c](https://github.com/OUIsolutions/LuaCEmbed/releases/download/0.8.2/LuaCEmbedOne.c) file
1717
into your project, and compile with gcc/clang
1818
```c
1919
#include "LuaCEmbedOne.c"

docs/build_and_install.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
## Install
44

5-
To install the lib just copy the [Amalgamation](https://github.com/OUIsolutions/LuaCEmbed/releases/download/0.8.0/LuaCEmbedOne.c) into your project and include it in your code:
5+
To install the lib just copy the [Amalgamation](https://github.com/OUIsolutions/LuaCEmbed/releases/download/0.8.2/LuaCEmbedOne.c) into your project and include it in your code:
66
```c
77
#include "LuaCEmbedOne.c"
88
```
99

1010

1111
If you are on Linux, you can download the lib with:
1212
```bash
13-
curl -L https://github.com/OUIsolutions/LuaCEmbed/releases/download/0.8.0/LuaCEmbedOne.c -o LuaCEmbedOne.c
13+
curl -L https://github.com/OUIsolutions/LuaCEmbed/releases/download/0.8.2/LuaCEmbedOne.c -o LuaCEmbedOne.c
1414
```
1515

1616
## Compile on Linux

src/LuaCEmbed/args/basic/fdefine.basic.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
lua_Integer privateLuaCEmbed_put_arg_on_top(LuaCEmbed *self, lua_Integer index){
44
PRIVATE_LUA_CEMBED_PROTECT_NUM
5-
lua_Integer formatted_index = index + LUA_CEMBED_INDEX_DIF;
5+
int formatted_index = index + LUA_CEMBED_INDEX_DIF;
66

77
if(formatted_index > self->total_args){
88
privateLuaCEmbed_raise_error_not_jumping(self,PRIVATE_LUA_CEMBED_ARG_NOT_PROVIDED,formatted_index,self->current_function);
@@ -30,7 +30,7 @@ lua_Integer LuaCEmbed_get_total_args(LuaCEmbed *self){
3030

3131
lua_Integer LuaCEmbed_get_arg_type(LuaCEmbed *self,lua_Integer index){
3232

33-
lua_Integer formatted_index = index + LUA_CEMBED_INDEX_DIF;
33+
int formatted_index = index + LUA_CEMBED_INDEX_DIF;
3434

3535
if(formatted_index > self->total_args){
3636
return LUA_CEMBED_NIL;
@@ -154,7 +154,7 @@ LuaCEmbedTable * LuaCEmbed_get_arg_table(LuaCEmbed *self,lua_Integer index){
154154

155155
LuaCEmbedTable* LuaCEmbed_run_args_lambda(LuaCEmbed *self, lua_Integer index, LuaCEmbedTable *args_to_call, lua_Integer total_returns){
156156

157-
long formatted_index = index + LUA_CEMBED_INDEX_DIF;
157+
int formatted_index = index + LUA_CEMBED_INDEX_DIF;
158158
char *formatted_arg = private_LuaCembed_format(PRIVATE_LUA_CEMBED_ARGS_,self->stack_leve,formatted_index-1);
159159

160160
if(privateLuaCEmbed_put_arg_on_top(self,index)){

src/LuaCEmbed/table/table/sub_tables/index/fdefine.index.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ LuaCEmbedTable *LuaCEmbedTable_new_sub_table_appending(LuaCEmbedTable *self){
77
88
//equivalent of: full_sub_table_name = {}
99
long index= LuaCEmbedTable_get_listable_size(self) +1;
10-
char *full_sub_table_name = private_LuaCembed_format("%s_%d", self->global_name, index);
10+
char *full_sub_table_name = private_LuaCembed_format("%s_%ld", self->global_name, index);
1111
lua_newtable(self->main_object->state);
1212
lua_setglobal(self->main_object->state,full_sub_table_name);
1313

@@ -66,7 +66,7 @@ LuaCEmbedTable *LuaCEmbedTable_get_sub_table_by_index(LuaCEmbedTable *self, lua
6666
}
6767

6868
//equivalent of full_sub_table_name = table[index]
69-
char *full_sub_table_name = private_LuaCembed_format("%s_%d", self->global_name, index);
69+
char *full_sub_table_name = private_LuaCembed_format("%s_%ld", self->global_name, (long)index);
7070
lua_setglobal(self->main_object->state,full_sub_table_name);
7171

7272
LuaCEmbedTable *possible = privateLuaCEmbedTableArray_find_by_internal_index(

0 commit comments

Comments
 (0)