Skip to content

Commit a19fa5d

Browse files
1 parent ac82a91 commit a19fa5d

File tree

1 file changed

+2
-1
lines changed
  • Tools/HLS_Arbitrary_Precision_Types/include/ap_impl

1 file changed

+2
-1
lines changed

Tools/HLS_Arbitrary_Precision_Types/include/ap_impl/ap_private.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1590,7 +1590,7 @@ ASSIGN_OP_FROM_INT(double)
15901590
}
15911591

15921592
public:
1593-
INLINE ap_private() {
1593+
INLINE ap_private() : VAL(0) {
15941594
set_canary();
15951595
clearUnusedBits();
15961596
check_canary();
@@ -3302,6 +3302,7 @@ class ap_private<_AP_W, _AP_S, false> {
33023302
/// for object deserialization (pair this with the static method Read).
33033303
INLINE ap_private() {
33043304
set_canary();
3305+
memset(pVal, 0, _AP_N * sizeof(uint64_t));
33053306
clearUnusedBits();
33063307
check_canary();
33073308
}

0 commit comments

Comments
 (0)