diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-09-11 12:17:00 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2013-09-11 12:17:00 -0300 |
commit | 2e2c109daf6c18943984cf9d4cfbc2311186b87d (patch) | |
tree | 73af729ec941697f56680f44b2fbe5414e2410cd | |
parent | 6ca7b63bce0ce4f1abf418dead256d3e51e41644 (diff) | |
download | lua-2e2c109daf6c18943984cf9d4cfbc2311186b87d.tar.gz lua-2e2c109daf6c18943984cf9d4cfbc2311186b87d.tar.bz2 lua-2e2c109daf6c18943984cf9d4cfbc2311186b87d.zip |
type of 'refcount' changed to lu_mem (to ensure there will be no
overflows)
-rw-r--r-- | lfunc.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lfunc.h,v 2.9 2013/08/07 12:18:11 roberto Exp roberto $ | 2 | ** $Id: lfunc.h,v 2.10 2013/08/27 18:53:35 roberto Exp roberto $ |
3 | ** Auxiliary functions to manipulate prototypes and closures | 3 | ** Auxiliary functions to manipulate prototypes and closures |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | struct UpVal { | 24 | struct UpVal { |
25 | TValue *v; /* points to stack or to its own value */ | 25 | TValue *v; /* points to stack or to its own value */ |
26 | unsigned int refcount; /* reference counter */ | 26 | lu_mem refcount; /* reference counter */ |
27 | union { | 27 | union { |
28 | struct { /* (when open) */ | 28 | struct { /* (when open) */ |
29 | UpVal *next; /* linked list */ | 29 | UpVal *next; /* linked list */ |