snow-math 1.2.1 → 1.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/snow-math/snow-math.c +8 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8540161113581ca75f88df1235ccb6293daa57ec
|
4
|
+
data.tar.gz: d93b16b109cb01a2ce9aa287307696f9ff6e8fb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 318d5a4f427a73d0ae42066e8f8e0796b9e4913931a9ec0235c201de922018a2e473fa1d4cb904516f0107ad7a466c448c3c51bf6e80fc4f35a21e9bf594fc09
|
7
|
+
data.tar.gz: 91ce1b664a2aa88065f47a8c358202a590df84b391d97f2e232b972ec0ad3517fa9f606cbc24f67f57aaa47fb5f5fa7252655e25247059b93e78a31a38768838
|
data/ext/snow-math/snow-math.c
CHANGED
@@ -2228,8 +2228,8 @@ static VALUE sm_mat3_get_row3(int argc, VALUE *argv, VALUE sm_self)
|
|
2228
2228
|
index = NUM2INT(argv[0]);
|
2229
2229
|
sm_out = Qnil;
|
2230
2230
|
|
2231
|
-
if (index < 0 || index >
|
2232
|
-
rb_raise(rb_eRangeError, "Index %d is out of range, must be (0 ..
|
2231
|
+
if (index < 0 || index > 2) {
|
2232
|
+
rb_raise(rb_eRangeError, "Index %d is out of range, must be (0 .. 2)", index);
|
2233
2233
|
return Qnil;
|
2234
2234
|
}
|
2235
2235
|
|
@@ -2280,8 +2280,8 @@ static VALUE sm_mat3_get_column3(int argc, VALUE *argv, VALUE sm_self)
|
|
2280
2280
|
index = NUM2INT(argv[0]);
|
2281
2281
|
sm_out = Qnil;
|
2282
2282
|
|
2283
|
-
if (index < 0 || index >
|
2284
|
-
rb_raise(rb_eRangeError, "Index %d is out of range, must be (0 ..
|
2283
|
+
if (index < 0 || index > 2) {
|
2284
|
+
rb_raise(rb_eRangeError, "Index %d is out of range, must be (0 .. 2)", index);
|
2285
2285
|
return Qnil;
|
2286
2286
|
}
|
2287
2287
|
|
@@ -2334,8 +2334,8 @@ static VALUE sm_mat3_set_row3(VALUE sm_self, VALUE sm_index, VALUE sm_value)
|
|
2334
2334
|
value = sm_unwrap_vec3(sm_value, NULL);
|
2335
2335
|
index = NUM2INT(sm_index);
|
2336
2336
|
|
2337
|
-
if (index < 0 || index >
|
2338
|
-
rb_raise(rb_eRangeError, "Index %d is out of range, must be (0 ..
|
2337
|
+
if (index < 0 || index > 2) {
|
2338
|
+
rb_raise(rb_eRangeError, "Index %d is out of range, must be (0 .. 2)", index);
|
2339
2339
|
return Qnil;
|
2340
2340
|
}
|
2341
2341
|
|
@@ -2358,8 +2358,8 @@ static VALUE sm_mat3_set_column3(VALUE sm_self, VALUE sm_index, VALUE sm_value)
|
|
2358
2358
|
value = sm_unwrap_vec3(sm_value, NULL);
|
2359
2359
|
index = NUM2INT(sm_index);
|
2360
2360
|
|
2361
|
-
if (index < 0 || index >
|
2362
|
-
rb_raise(rb_eRangeError, "Index %d is out of range, must be (0 ..
|
2361
|
+
if (index < 0 || index > 2) {
|
2362
|
+
rb_raise(rb_eRangeError, "Index %d is out of range, must be (0 .. 2)", index);
|
2363
2363
|
return Qnil;
|
2364
2364
|
}
|
2365
2365
|
|