HDLRuby 2.11.0 → 2.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 284593b60cc81aa5e8f0f80a4370ffa33452763e22cf8928d3af1d773c69e8d4
|
4
|
+
data.tar.gz: 1f2f0a10ec13a7050740b621a436cf61b80895f0205033768bba101a358b911f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14458d5c7ae19883a43231859bce22f2e29efdbdaeb8b721af8178eab50626bbe49393c9b009eeb33b1301aeba0dec136cec804faf8c9e63a33c85ecd7595bc8
|
7
|
+
data.tar.gz: 542354d84103276c6875dab37528d4a7a7218d71d11a8dc70b6d49aa43a9c72c8967d729282126a24b84e763eb94297ffffae50dc9c785deb2d811cf29125c4b
|
@@ -224,6 +224,7 @@ VALUE rcsim_make_behavior(VALUE mod, VALUE timed) {
|
|
224
224
|
behavior->owner = NULL;
|
225
225
|
behavior->num_events = 0;
|
226
226
|
behavior->events = NULL;
|
227
|
+
behavior->block = NULL;
|
227
228
|
behavior->enabled = 0;
|
228
229
|
behavior->activated = 0;
|
229
230
|
if (TYPE(timed) == T_TRUE) {
|
@@ -235,6 +236,7 @@ VALUE rcsim_make_behavior(VALUE mod, VALUE timed) {
|
|
235
236
|
behavior->timed = 0;
|
236
237
|
}
|
237
238
|
behavior->active_time = 0;
|
239
|
+
behavior->thread = NULL;
|
238
240
|
/* Returns the C behavior embedded into a ruby VALUE. */
|
239
241
|
VALUE res;
|
240
242
|
rcsim_to_value(BehaviorS,behavior,res);
|
@@ -946,7 +946,7 @@ Value reduce_or_value_bitstring(Value src, Value dst) {
|
|
946
946
|
|
947
947
|
/* Performs the reduce or. */
|
948
948
|
unsigned long long count;
|
949
|
-
char res;
|
949
|
+
char res = 0;
|
950
950
|
for(count = 0; count < width; ++count) {
|
951
951
|
/* Performs the reduce or. */
|
952
952
|
char d = src_data[count] - '0'; /* Get and convert to bit. */
|
@@ -76,7 +76,8 @@ void register_timed_behavior(Behavior behavior) {
|
|
76
76
|
} else {
|
77
77
|
/* Need to increase the capacity. */
|
78
78
|
Behavior* behaviors = calloc(sizeof(Behavior),cap_timed_behaviors*2);
|
79
|
-
memcpy(timed_behaviors,
|
79
|
+
memcpy(behaviors,timed_behaviors,sizeof(Behavior)*cap_timed_behaviors);
|
80
|
+
timed_behaviors = behaviors;
|
80
81
|
cap_timed_behaviors *= 2;
|
81
82
|
}
|
82
83
|
}
|
@@ -33,6 +33,10 @@ Value get_value() {
|
|
33
33
|
/* Need to increase the pool capacity. */
|
34
34
|
pool_cap = pool_cap * 2;
|
35
35
|
pool_values = (Value*)realloc(pool_values,pool_cap*sizeof(Value));
|
36
|
+
if (pool_values == NULL) {
|
37
|
+
perror("Internal error with the pool of values.");
|
38
|
+
exit(1);
|
39
|
+
}
|
36
40
|
/* Allocate the new values. */
|
37
41
|
/* Note: now pool_pos is the old pool_cap and is also the number
|
38
42
|
* of new values to allocate. */
|
data/lib/HDLRuby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: HDLRuby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.11.
|
4
|
+
version: 2.11.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lovic Gauthier
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|