From cc2b66c85687b095e68304c010b59851ca4093e1 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 13 Mar 2024 09:16:51 -0300 Subject: Removed type 'varint_t' size_t should be big enough to count the number of strings in a dump. (And, by definition, it is big enough to count the length of each string.) --- lundump.h | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'lundump.h') diff --git a/lundump.h b/lundump.h index ff66d2e7..1d6e50ea 100644 --- a/lundump.h +++ b/lundump.h @@ -28,18 +28,6 @@ #define LUAC_FORMAT 0 /* this is the official format */ -/* -** Type to handle MSB Varint encoding: Try to get the largest unsigned -** integer available. (It was enough to be the largest between size_t and -** lua_Integer, but the C89 preprocessor knows nothing about size_t.) -*/ -#if !defined(LUA_USE_C89) && defined(LLONG_MAX) -typedef unsigned long long varint_t; -#else -typedef unsigned long varint_t; -#endif - - /* load one chunk; from lundump.c */ LUAI_FUNC LClosure* luaU_undump (lua_State* L, ZIO* Z, const char* name, int fixed); -- cgit v1.2.3-55-g6feb