@@ -79,19 +79,19 @@ int privateLuaCEmbed_main_callback_handler(lua_State *L){
79
79
}
80
80
81
81
if (possible_return -> type == PRIVATE_LUA_CEMBED_LONG_RESPONSE ){
82
- lua_pushinteger (L , ( int ) possible_return -> num_val );
82
+ lua_pushinteger (L , possible_return -> int_val );
83
83
private_LuaCEmbedResponse_free (possible_return );
84
84
return PRIVATE_LUACEMBED_ONE_RETURN ;
85
85
}
86
86
87
87
if (possible_return -> type == PRIVATE_LUA_CEMBED_BOOL_RESPONSE ){
88
- lua_pushboolean (L , (bool )possible_return -> num_val );
88
+ lua_pushboolean (L , (bool )possible_return -> int_val );
89
89
private_LuaCEmbedResponse_free (possible_return );
90
90
return PRIVATE_LUACEMBED_ONE_RETURN ;
91
91
}
92
92
93
93
if (possible_return -> type == PRIVATE_LUA_CEMBED_DOUBLE_RESPONSE ){
94
- lua_pushnumber (L , possible_return -> num_val );
94
+ lua_pushnumber (L , possible_return -> double_val );
95
95
private_LuaCEmbedResponse_free (possible_return );
96
96
return PRIVATE_LUACEMBED_ONE_RETURN ;
97
97
}
@@ -102,11 +102,6 @@ int privateLuaCEmbed_main_callback_handler(lua_State *L){
102
102
return PRIVATE_LUACEMBED_ONE_RETURN ;
103
103
}
104
104
105
- if (possible_return -> type == PRIVATE_LUA_CEMBED_DOUBLE_RESPONSE ){
106
- lua_pushboolean (L , (bool )possible_return -> num_val );
107
- private_LuaCEmbedResponse_free (possible_return );
108
- return PRIVATE_LUACEMBED_ONE_RETURN ;
109
- }
110
105
111
106
if (possible_return -> type == PRIVATE_LUA_CEMBED_TABLE_RESPONSE ){
112
107
lua_getglobal (self -> state , PRIVATE_LUA_CEMBED_TABLE_RETURN );
@@ -233,4 +228,4 @@ void LuaCEmbed_add_global_callback(LuaCEmbed *self, const char *callback_name, L
233
228
return ;
234
229
}
235
230
private_LuaCEmbed_add_evaluation_callback (self ,callback_name ,callback );
236
- }
231
+ }
0 commit comments