Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@kouzhudong
Copy link

lua.c(159,28): error C2440: “函数”: 无法从“void (__stdcall *)(int)”转换为“void (__cdecl *)(int)”

This is the first commit for the branch Lua 5.3. All source files
were copied from the official distribution of 5.3.5 in the Lua site.
The test files are the same of 5.3.4. The manual came from the
previous RCS repository, revision 1.167.1.2.
A long bracket with too many equal signs can overflow the 'int' used for
the counting and some arithmetic done on the value. Changing the counter
to 'size_t' avoids that. (Because what is counted goes to a buffer, an
overflow in the counter will first raise a buffer-overflow error.)
Bug-fix: joining an upvalue with itself could cause a use-after-free
crash.
The result of 'string.format("%a", 0.0)' can have multiple zeros
after the dot.
The file 'bugs' reports bugs in several different versions
(corresponding to different branches in the repository), without
a clear division of "this bugs belongs to this version". So, it
doesn't make sense to track it along with one (or many) versions.
While building a new prototype, the GC needs barriers for every object
(strings and nested prototypes) that is attached to the new prototype.
According to ISO C, 'realloc' can fail when shrinking a block. If that
happens, 'l_alloc' simply ignores the fail and returns the original
block.
This directory is used for some tests. As standard Lua has no command
to create directories, it must be present before running the tests.
When "undumping" a long string, the function 'LoadVector' can call the
reader function, which can run the garbage collector, which can collect
the string being read. So, the string must be anchored during the call
to 'LoadVector'. (This commit also fixes the identation in 'l_alloc'.)
@craigbarnes
Copy link
Member

craigbarnes commented Aug 27, 2021

This repo isn't currently used for discussing issues or patches. The correct place to send this is the Lua Mailing List.

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.

4 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.