Skip to content

fix bugger - #9

Open
Narngisa wants to merge 9 commits into
SupTan85:mainfrom
Narngisa:main
Open

Narngisa wants to merge 9 commits into
SupTan85:mainfrom
Narngisa:main

Conversation

@Narngisa

@Narngisa Narngisa commented Jun 2, 2026

Copy link
Copy Markdown

fix spell "UNKNOW" to "UNKNOWN"

:>

@Narngisa

Narngisa commented Jun 3, 2026

Copy link
Copy Markdown
Author

Fix many bug

@Narngisa Narngisa changed the title fix spelling fix bugger Jun 3, 2026

@SupTan85 SupTan85 left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some feature is not work correcly, trim feature
maybe i will rewirte everything soon...

@SupTan85

Copy link
Copy Markdown
Owner

many thing was changed, it will take a while to review it all

Comment thread int.lua

local breaktime = B_LIMIT
for i = 0, rap._dlen, -1 do
for i = rap._dlen or 0, -1 do

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rap._dlen is negative number, wrong loop setting

Comment thread int.lua
end,

div = function(self, a, b, s, f, l) -- _size maxiumum *1 (`f` The maxiumum number of decimal part, `l` The maximum number of iterations to perform.) **chunk size should be same**
div = function(self, a, b, s, f, l, _bypass) -- _size maxiumum *1 (`f` The maxiumum number of decimal part, `l` The maximum number of iterations to perform.) **chunk size should be same**

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry but why _bypass is exsited?
i checked it and i saw it just disable warning of "MASTER_CALCULATE_DIV_BYPASS_GEN_FLOATING_POINT" error.

this option shouldn't be editable except for in development

Comment thread int.lua
-- issue checker >>
if not lp then
if master._config.OPTION.MASTER_CALCULATE_DIV_BYPASS_GEN_FLOATING_POINT then
if use_bypass then

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread int.lua
if shift < s then
local lastcut = -shift
lastcut_num = tostring(x[new_dlen]):sub(lastcut, lastcut)
lastcut_num = tostring(x[new_dlen] or 0):sub(lastcut, lastcut)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"or 0" is not require because it cut index that always existed

Comment thread int.lua
lastcut_num = tostring(x[new_dlen] or 0):sub(lastcut, lastcut)

local new_value = floor(x[new_dlen] * (10 ^ -shift)) * floor(10 ^ shift)
local new_value = floor((x[new_dlen] or 0) * (10 ^ -shift)) * floor(10 ^ shift)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread int.lua
if length then
---@diagnostic disable-next-line: param-type-mismatch
return setmetatable(custom:cround(x, length, 0), master._metatable)
local x_copy = master.copy(x)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this low-level function and it just for modified only and need to be fastest, in this case you made this function using "master.copy" and add something that existed in "custom.cround".

this changed possible to make some function that using it slowed, and all feature that you added it are on high-level function for who import this module

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants