Skip to content

Commit

Permalink
fixed non-impacting issues in as.mmap.character
Browse files Browse the repository at this point in the history
  • Loading branch information
jaryan committed Feb 28, 2021
1 parent 9d0bcd8 commit e22fe72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: mmap
Type: Package
Title: Map Pages of Memory
Version: 0.6-19
Date: 2020-01-12
Version: 0.6-20
Date: 2021-02-2828
Author: Jeffrey A. Ryan
LazyLoad: yes
Maintainer: Jeffrey A. Ryan <jeff.a.ryan@gmail.com>
Expand Down
4 changes: 2 additions & 2 deletions R/mmap.R
Original file line number Diff line number Diff line change
Expand Up @@ -303,9 +303,9 @@ as.mmap.character <- function(x,
if(!force)
stop("requires fixed-width character vector. Use make.fixedwidth first.")
x <- make.fixedwidth(x)
mode <- char(nchar(x[1]))
}
#if( !identical(mode, char(nchar(x[1])))){
writeBin(x, file, size = nbytes)
writeBin(x, file)
mmap(file, as.Ctype(mode))
}

Expand Down

0 comments on commit e22fe72

Please sign in to comment.