Skip to content

Commit

Permalink
Fix build on armv7l (#174)
Browse files Browse the repository at this point in the history
If we try to build on armv7l we have this error : 
ios/dtx_codec/connection.go:174:31: cannot use 4294967295 (untyped int constant) as int value in argument to dtxConn.activeChannels.Store (overflows)
  • Loading branch information
CedricCouton authored Oct 2, 2022
1 parent ca2f71b commit 54670c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ios/dtx_codec/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"strings"
"sync"
"time"
"math"

ios "github.com/danielpaulus/go-ios/ios"
"github.com/danielpaulus/go-ios/ios/nskeyedarchiver"
Expand Down Expand Up @@ -171,7 +172,7 @@ func (dtxConn *Connection) ForChannelRequest(messageDispatcher Dispatcher) *Chan
// This channel seems to always be there without explicitly requesting it and sometimes it is used.
func (dtxConn *Connection) AddDefaultChannelReceiver(messageDispatcher Dispatcher) *Channel {
channel := &Channel{channelCode: -1, channelName: "c -1/ 4294967295 receiver channel ", messageIdentifier: 1, connection: dtxConn, messageDispatcher: messageDispatcher, responseWaiters: map[int]chan Message{}, defragmenters: map[int]*FragmentDecoder{}, timeout: 5 * time.Second}
dtxConn.activeChannels.Store(4294967295, channel)
dtxConn.activeChannels.Store(uint32(math.MaxUint32), channel)
return channel
}

Expand Down

0 comments on commit 54670c0

Please sign in to comment.