File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -58,8 +58,8 @@ extern const luaR_entry lua_rotable_base[];
58
58
//magic is used; the section names are lexically sorted, so 'a' and 'z' are
59
59
//important to keep the other sections lexically between these two dummy
60
60
//variables. Check your mapfile output if you need to fiddle with this stuff.
61
- const LOCK_IN_SECTION (A ) int _ro_start = 0 ;
62
- const LOCK_IN_SECTION (zzzzzzzz ) int _ro_end = 0 ;
61
+ const LOCK_IN_SECTION (A ) char _ro_start [ 1 ] = { 0 } ;
62
+ const LOCK_IN_SECTION (zzzzzzzz ) char _ro_end [ 1 ] = { 0 } ;
63
63
#endif
64
64
static const LOCK_IN_SECTION (libs ) luaL_reg LUA_LIBS [] = {
65
65
{"" , luaopen_base },
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ int luaR_isrotable(void *p);
66
66
67
67
#if defined(_MSC_VER )
68
68
//msvc build uses these dummy vars to locate the beginning and ending addresses of the RO data
69
- extern cons char _ro_start [], _ro_end [];
69
+ extern const char _ro_start [], _ro_end [];
70
70
#define IN_RODATA_AREA (p ) (((const char*)(p)) >= _ro_start && ((const char *)(p)) <= _ro_end)
71
71
#else /* one of the POSIX variants */
72
72
#if defined(__CYGWIN__ )
You can’t perform that action at this time.
0 commit comments