Same undefined behavior from shifting into the sign bit in Storage

This commit is contained in:
Daniel J. Hofmann 2016-02-05 18:07:51 +01:00
parent b8d20dfe99
commit bb06bfbbd7

View File

@ -425,7 +425,7 @@ int Storage::Run()
}();
if (current_edge_data.compressed_geometry)
{
geometries_indicator_ptr[bucket] = (value | (1 << offset));
geometries_indicator_ptr[bucket] = (value | (1u << offset));
}
}
edges_input_stream.close();
@ -513,7 +513,7 @@ int Storage::Run()
return return_value;
}();
core_marker_ptr[bucket] = (value | (1 << offset));
core_marker_ptr[bucket] = (value | (1u << offset));
}
}