Skip to content

Commit 50f1a8d

Browse files
committed
first release!
1 parent 9a25194 commit 50f1a8d

4 files changed

Lines changed: 9 additions & 13 deletions

File tree

fuzz/mrbgem.rake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MRuby::Gem::Specification.new('mruby-cbor-fuzzer') do |spec|
2-
spec.license = 'MIT'
3-
spec.author = 'Meastro'
2+
spec.license = 'Apache-2'
3+
spec.author = 'Asmod4n'
44
spec.summary = 'libFuzzer harness for mruby-cbor'
55

66
spec.bins = %w[mruby-cbor-fuzzer]

mrbgem.rake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
require_relative 'mrblib/version'
2+
13
MRuby::Gem::Specification.new('mruby-cbor') do |spec|
24

35
spec.license = 'Apache-2'
46
spec.author = 'Hendrik Beskow'
57
spec.summary = 'CBOR implementation for mruby'
8+
spec.version = CBOR::VERSION
69
spec.add_dependency 'mruby-c-ext-helpers'
710
spec.add_dependency 'mruby-time'
811
spec.add_dependency 'mruby-string-is-utf8'

mrblib/version.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module CBOR
2+
VERSION = '1.0.0'
3+
end

src/mrb_cbor.c

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -990,22 +990,12 @@ encode_integer(CborWriter *w, mrb_int n)
990990
}
991991
}
992992

993-
static void
993+
static inline void
994994
encode_uint64(CborWriter *w, uint64_t v)
995995
{
996996
encode_len(w, 0, v);
997997
}
998998

999-
static void
1000-
encode_int64(CborWriter *w, int64_t n)
1001-
{
1002-
if (n >= 0) {
1003-
encode_len(w, 0, (uint64_t)n);
1004-
} else {
1005-
encode_len(w, 1, (uint64_t)(-1 - n));
1006-
}
1007-
}
1008-
1009999
// ============================================================================
10101000
// Shared reference tracking
10111001
// ============================================================================

0 commit comments

Comments
 (0)