Skip to content

Commit

Permalink
Merge pull request #237 from jelu/fix-thr-push-num
Browse files Browse the repository at this point in the history
thread push number
  • Loading branch information
jelu committed Mar 8, 2024
2 parents 07b35b7 + 36b8266 commit d4b7315
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/core/thread.c
Expand Up @@ -185,7 +185,7 @@ void core_thread_push_string(core_thread_t* self, const char* str, size_t len)
_push(self, item);
}

void core_thread_push_number(core_thread_t* self, lua_Number num)
void core_thread_push_number(core_thread_t* self, double num)
{
core_thread_item_t* item;
mlassert_self();
Expand Down
1 change: 0 additions & 1 deletion src/core/thread.h
Expand Up @@ -25,7 +25,6 @@

#include <pthread.h>
#include <unistd.h>
#include <lua.h>

#include <dnsjit/core/thread.hh>

Expand Down
6 changes: 3 additions & 3 deletions src/core/thread.hh
Expand Up @@ -27,8 +27,8 @@ struct core_thread_item {
void* ptr;
char * type, *module;

char* str;
lua_Number num;
char* str;
double num;
};

typedef struct core_thread {
Expand All @@ -52,5 +52,5 @@ int core_thread_start(core_thread_t* self, const char* byt
int core_thread_stop(core_thread_t* self);
void core_thread_push(core_thread_t* self, void* ptr, const char* type, size_t type_len, const char* module, size_t module_len);
void core_thread_push_string(core_thread_t* self, const char* str, size_t len);
void core_thread_push_number(core_thread_t* self, lua_Number num);
void core_thread_push_number(core_thread_t* self, double num);
const core_thread_item_t* core_thread_pop(core_thread_t* self);

0 comments on commit d4b7315

Please sign in to comment.