bencode_ext 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/bencode_ext.gemspec +1 -1
- data/ext/bencode_ext/bencode.c +1 -1
- data/ext/bencode_ext/bencode.h +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.3
|
data/bencode_ext.gemspec
CHANGED
data/ext/bencode_ext/bencode.c
CHANGED
@@ -314,7 +314,7 @@ static VALUE set_max_depth(VALUE self, VALUE depth){
|
|
314
314
|
|
315
315
|
t = NUM2LONG(depth);
|
316
316
|
if(t < 0)
|
317
|
-
rb_raise(rb_eArgError, "Depth must be
|
317
|
+
rb_raise(rb_eArgError, "Depth must be greather than or equal to 0");
|
318
318
|
|
319
319
|
max_depth = t;
|
320
320
|
return depth;
|
data/ext/bencode_ext/bencode.h
CHANGED
@@ -7,6 +7,7 @@ static VALUE BEncode;
|
|
7
7
|
static VALUE DecodeError;
|
8
8
|
static VALUE EncodeError;
|
9
9
|
static VALUE readId;
|
10
|
+
static long max_depth;
|
10
11
|
|
11
12
|
static long parse_num(char**, long*);
|
12
13
|
static VALUE decode(VALUE, VALUE);
|
@@ -18,7 +19,6 @@ static VALUE _decode_file(VALUE);
|
|
18
19
|
static VALUE decode_file(VALUE, VALUE);
|
19
20
|
static VALUE get_max_depth(VALUE);
|
20
21
|
static VALUE set_max_depth(VALUE, VALUE);
|
21
|
-
static long max_depth;
|
22
22
|
void Init_bencode_ext();
|
23
23
|
|
24
24
|
#endif
|