Skip to content

Commit 5a033e5

Browse files
committed
Reset hash_code upon irept::write
Follow-up fix to b741d4b.
1 parent 7a38669 commit 5a033e5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/util/irep.h

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,16 @@ class irept
237237
dt &write(bool mark_shareable)
238238
{
239239
#ifdef SHARING
240-
return data.write(mark_shareable);
240+
dt &retval = data.write(mark_shareable);
241241
#else
242-
return data;
242+
dt &retval = data;
243+
#endif
244+
245+
#ifdef HASH_CODE
246+
retval.hash_code = 0;
243247
#endif
248+
249+
return retval;
244250
}
245251

246252
public:

0 commit comments

Comments
 (0)