Skip to content

Commit

Permalink
fix r cmd check warning on use of bitwise &
Browse files Browse the repository at this point in the history
  • Loading branch information
jwijffels committed Mar 23, 2022
1 parent b1c9a72 commit a8c053c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Package: udpipe
Type: Package
Title: Tokenization, Parts of Speech Tagging, Lemmatization and Dependency
Parsing with the 'UDPipe' 'NLP' Toolkit
Version: 0.8.8
Version: 0.8.9
Maintainer: Jan Wijffels <[email protected]>
Authors@R: c(
person('Jan', 'Wijffels', role = c('aut', 'cre', 'cph'), email = '[email protected]'),
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## CHANGES IN udpipe VERSION 0.8.9

- fix R CMD check message on Fedora clang infrastructure: rcpp_udpipe.cpp:243:8: warning: use of bitwise '&' with boolean operands

## CHANGES IN udpipe VERSION 0.8.8

- dtm_svd_similarity, fix to make sure that if provided a dtm with features which are all missing/zero,
Expand Down
2 changes: 1 addition & 1 deletion src/rcpp_udpipe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ Rcpp::List udp_tokenise_tag_parse_basic(SEXP udmodel, Rcpp::StringVector x, Rcpp
Rcpp::CharacterVector na_locf(Rcpp::CharacterVector x) {
int i;
for(i = 1; i < x.size(); i++) {
if((x[i] == NA_STRING) & (x[i-1] != NA_STRING)) {
if((x[i] == NA_STRING) && (x[i-1] != NA_STRING)) {
x[i] = x[i-1];
}
}
Expand Down

0 comments on commit a8c053c

Please sign in to comment.