lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> > #define sizelstring(l)  (offsetof(TString, bytes) + ((l) + 1) *
> > sizeof(char))
> 
> Is it OK if sizelstring(l) sometimes is less than sizeof(TString)?

It could be a problem in code that would have problems even without that
(e.g., assigning a TString to another).

-- Roberto
_______________________________________________
lua-l mailing list -- lua-l@lists.lua.org
To unsubscribe send an email to lua-l-leave@lists.lua.org