aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-09-11 12:17:00 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2013-09-11 12:17:00 -0300
commit2e2c109daf6c18943984cf9d4cfbc2311186b87d (patch)
tree73af729ec941697f56680f44b2fbe5414e2410cd
parent6ca7b63bce0ce4f1abf418dead256d3e51e41644 (diff)
downloadlua-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.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lfunc.h b/lfunc.h
index 39dbc901..11438ab7 100644
--- a/lfunc.h
+++ b/lfunc.h
@@ -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*/
24struct UpVal { 24struct 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 */