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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/ext/snow-math/snow-math.c +8 -8
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: acf4b914538998803baaaa10019c764a2ddb6795
4
- data.tar.gz: ca803853cb9d6ae15934dae390f13eb794640ca9
3
+ metadata.gz: 8540161113581ca75f88df1235ccb6293daa57ec
4
+ data.tar.gz: d93b16b109cb01a2ce9aa287307696f9ff6e8fb3
5
5
  SHA512:
6
- metadata.gz: 708e55617a3bafb8e761e6fb64ac71260dc3a532687e168e829a255be508f77174d123ae94298d8f680ee043860d16a6f6f5ccea38bda038e61584477ddb83ff
7
- data.tar.gz: 058f627a57fda1e6710863aa882ca1b6040d7731b51ba6d2b8ae854c3e0b12e17da7eb90815f2cfe811d7cafecc0a7826e111679807301732cb3ba323f3519d2
6
+ metadata.gz: 318d5a4f427a73d0ae42066e8f8e0796b9e4913931a9ec0235c201de922018a2e473fa1d4cb904516f0107ad7a466c448c3c51bf6e80fc4f35a21e9bf594fc09
7
+ data.tar.gz: 91ce1b664a2aa88065f47a8c358202a590df84b391d97f2e232b972ec0ad3517fa9f606cbc24f67f57aaa47fb5f5fa7252655e25247059b93e78a31a38768838
@@ -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 > 3) {
2232
- rb_raise(rb_eRangeError, "Index %d is out of range, must be (0 .. 3)", index);
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 > 3) {
2284
- rb_raise(rb_eRangeError, "Index %d is out of range, must be (0 .. 3)", index);
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 > 3) {
2338
- rb_raise(rb_eRangeError, "Index %d is out of range, must be (0 .. 3)", index);
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 > 3) {
2362
- rb_raise(rb_eRangeError, "Index %d is out of range, must be (0 .. 3)", index);
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snow-math
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noel Raymond Cower