cmultibyte 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/ext/cmultibyte.c CHANGED
@@ -76,7 +76,7 @@ VALUE rb_tidy_byte(VALUE self, VALUE byte) {
76
76
  }
77
77
 
78
78
  static void cp1252_hash_to_array(VALUE cp1252_hash) {
79
- cp1252 = malloc(256 * sizeof(int));
79
+ cp1252 = ALLOC_N(int, 256);
80
80
  VALUE val;
81
81
  for (int i = 0; i < 256; i++) {
82
82
  val = rb_hash_aref(cp1252_hash, INT2FIX(i));
@@ -1,3 +1,3 @@
1
1
  module Cmultibyte
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: cmultibyte
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.5
5
+ version: 0.0.6
6
6
  platform: ruby
7
7
  authors:
8
8
  - Burke Libbey