mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-07 03:00:20 -04:00
avoid overflow in R 3.3.0 radix sort
This commit is contained in:
@@ -597,7 +597,10 @@ Callbacks <- R6Class(
|
||||
.callbacks = 'Map',
|
||||
|
||||
initialize = function() {
|
||||
.nextId <<- as.integer(.Machine$integer.max)
|
||||
# NOTE: we avoid using '.Machine$integer.max' directly
|
||||
# as R 3.3.0's 'radixsort' could segfault when sorting
|
||||
# an integer vector containing this value
|
||||
.nextId <<- as.integer(.Machine$integer.max - 1L)
|
||||
.callbacks <<- Map$new()
|
||||
},
|
||||
register = function(callback) {
|
||||
|
||||
Reference in New Issue
Block a user