Skip to content

Commit

Permalink
np2: mseed util: manual upcast for a bitwise AND
Browse files Browse the repository at this point in the history
  • Loading branch information
megies committed Jun 4, 2024
1 parent 268a948 commit 46231a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion obspy/io/mseed/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -1609,7 +1609,7 @@ def shift_time_of_file(input_file, output_file, timeshift):
# This should rarely be the case.
if current_time_shift == 0 and is_time_correction_applied:
# This sets bit 2 of the activity flags to 0.
current_record[36] = current_record[36] & (~2)
current_record[36] = np.int64(current_record[36]) & (~2)
is_time_correction_applied = False
# This is the case if the time correction has been applied. This
# requires some more work by changing both, the actual time and the
Expand Down

0 comments on commit 46231a4

Please sign in to comment.