-
Notifications
You must be signed in to change notification settings - Fork 0
/
bug_20170906.txt
95 lines (81 loc) · 1.59 KB
/
bug_20170906.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
(1)
public int seek(long offset, int origin)
{
if (stream != null)
{
try
{
(SeekOrigin)xxx, not very good----> stream.Seek(offset, (SeekOrigin)origin);
return 0;
}
catch
{
return 1;
}
}
else
{
return 1;
}
}
solve:
public int seek(long offset, int origin)
{
if (stream != null)
{
try
{
stream.Seek(offset, (SeekOrigin)origin);
return 0;
}
catch
{
return 1;
}
}
else
{
return 1;
}
}
->
(2) don't use PtrRef, it's a wrong class
/*
public class PtrRef : GCObjectRef
{
public PtrRef(GCObject obj) { this.obj = obj; }
public void set(GCObject value) { this.obj = value; }
public GCObject get() { return this.obj; }
GCObject obj;
}*/
----------------------
--->(2)
FIXED:(lua-5.2.0-20100206)
/*
public class PtrRef : GCObjectRef
{
public PtrRef(GCObject obj) { this.obj = obj; }
public void set(GCObject value) { this.obj = value; }
public GCObject get() { return this.obj; }
GCObject obj;
}
*/
public class TobefnzRef : GCObjectRef
{
public TobefnzRef(global_State g) { this.g = g; }
public void set(GCObject value) { this.g.tobefnz = value; }
public GCObject get() { return this.g.tobefnz; }
global_State g;
}
----------------------
(y,-) lua-5.1.4
(y,-) lua-5.1.5
(y,-) lua-5.2.0-2007
(y,-) lua-5.2.0-20071029
(y,-) lua-5.2.0-2008
(y,y) lua-5.2.0-2009
(y,y) lua-5.2.0-20090702
(y,y) lua-5.2.0-20100206
(y,y) lua-5.2.0-alpha
(y,y) lua-5.2.0-beta
(y,y) lua-5.2.0