Jump to content

Can this cause Crash Core?


Recommended Posts

Hi, in my syser of CH i have a lot of this, i don't think this can cause crash but i wanted to ask you if it still can create problems.

If it doesn't I was thinking to delete this syserr from the source so i don't see it anymore, even if I know it sill remains there

SYSERR: Oct  4 02:48:02 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52
SYSERR: Oct  4 02:48:07 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52
SYSERR: Oct  4 02:48:27 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52
SYSERR: Oct  4 02:48:42 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52
SYSERR: Oct  4 02:48:57 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52
SYSERR: Oct  4 02:49:07 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52
SYSERR: Oct  4 02:49:12 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52
SYSERR: Oct  4 02:49:37 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52
SYSERR: Oct  4 02:49:47 :: number_ex: number(): first argument is bigger than second argument 1 -> 0, questlua_global.cpp 52

I tried to search where the problem is, but it is impossible to find for me... it could be anywhere

Here (questlua_global.cpp 52) there is only this:

	ALUA(_number)
	{
		if (!lua_isnumber(L, 1) || !lua_isnumber(L, 2))
			lua_pushnumber(L, 0);
		else
			lua_pushnumber(L, number((int)lua_tonumber(L, 1), (int)lua_tonumber(L, 2))); //this is line 52
		return 1;
	}

 

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

may this helps you?

int _number(lua_State* L)
    {
        if (!lua_isnumber(L, 1) || !lua_isnumber(L, 2))
            lua_pushnumber(L, 0);
        else
            lua_pushnumber(L, number((int)lua_tonumber(L, 1), (int)lua_tonumber(L, 2)));
        return 1;
    }

Link to comment
Share on other sites

2 hours ago, hware82 said:

may this helps you?

int _number(lua_State* L)
    {
        if (!lua_isnumber(L, 1) || !lua_isnumber(L, 2))
            lua_pushnumber(L, 0);
        else
            lua_pushnumber(L, number((int)lua_tonumber(L, 1), (int)lua_tonumber(L, 2)));
        return 1;
    }

Thanks, I could try to replace with this

int _number(lua_State* L)

I'm just a little afraid that this could cause some other problems, or not? ahah i don't know

Anyway I'll try and see what happens

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.