Skip to content

Commit 53bb8fd

Browse files
committed
Declare the version variable as const
Because it is not mutated after it is read from file.
1 parent f6c9bbe commit 53bb8fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/goto-programs/read_bin_goto_object.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ bool read_bin_goto_object(
256256
// symbol_serializationt symbolconverter(ic);
257257

258258
{
259-
std::size_t version=irepconverter.read_gb_word(in);
259+
const std::size_t version = irepconverter.read_gb_word(in);
260260

261261
if(version < GOTO_BINARY_VERSION)
262262
{

0 commit comments

Comments
 (0)