Skip to content

Commit

Permalink
[core] Fixed getPeerSpec() left shift loosing value
Browse files Browse the repository at this point in the history
  • Loading branch information
maxsharabayko committed Oct 26, 2020
1 parent 6502c1c commit 651a3a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion srtcore/api.h
Expand Up @@ -151,7 +151,7 @@ class CUDTSocket

static int64_t getPeerSpec(SRTSOCKET id, int32_t isn)
{
return (id << 30) + isn;
return (int64_t(id) << 30) + isn;
}
int64_t getPeerSpec()
{
Expand Down

0 comments on commit 651a3a0

Please sign in to comment.