Skip to content

Commit

Permalink
variable size to fixed 30
Browse files Browse the repository at this point in the history
  • Loading branch information
mrchypark committed Apr 17, 2022
1 parent d968924 commit a070219
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 8 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ kiwilibs/*
^pkgdown/*
^vignettes/*
^CRAN-SUBMISSION$
^cran-comments\.md$
6 changes: 3 additions & 3 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 0.2.1
Date: 2022-04-16 04:53:52 UTC
SHA: fd9c6cff290d0dc088b0cd6e01a6f1cf3c4a8044
Version: 0.2.2
Date: 2022-04-17 04:35:54 UTC
SHA: d968924909a601a7ecc844408fe0defa58957352
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# elbird 0.2.2

* size to 30 for [-Wvla]

# elbird 0.2.1

* Add `Stopwords` `add()` method form param default value NA.
Expand Down
2 changes: 1 addition & 1 deletion R/kiwi.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#' Kiwi class
#' Kiwi Class
#'
#' @description
#' Kiwi class is provide method for korean mophological analyze result.
Expand Down
5 changes: 5 additions & 0 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
## R CMD check results

0 errors | 0 warnings | 1 note

* Fix [-Wvla] warninng on 0.2.1
2 changes: 1 addition & 1 deletion man/Kiwi.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/kiwi_bind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,9 @@ int kiwi_builder_add_pre_analyzed_word_(
cpp11::integers start = analyzed_r["start"];
cpp11::integers end = analyzed_r["end"];

const char* analyzed_morphs[size];
const char* analyzed_pos[size];
int positions[size*2+1];
const char* analyzed_morphs[30];
const char* analyzed_pos[30];
int positions[61];

for (int i = 0; i < size; ++i) {
analyzed_morphs[i] = morphs[i].c_str();
Expand Down

0 comments on commit a070219

Please sign in to comment.