Skip to content

Commit

Permalink
codespace fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
coolbutuseless committed May 28, 2024
1 parent 482de5e commit 59830e0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@
^data-raw$
^LICENSE-spleen.txt$
^\.github$
^.devcontainer$
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ URL: https://github.com/coolbutuseless/nara, https://coolbutuseless.github.io/pa
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
Depends:
R (>= 2.10)
Suggests:
Expand Down
2 changes: 1 addition & 1 deletion src/nr-draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ SEXP draw_text_(SEXP nr_, SEXP str_, SEXP colour_, SEXP x_, SEXP y_, SEXP fontsi
for (int char_idx = 0; char_idx < nchars; char_idx++) {
int c = str[char_idx] - 32;
if (c < 0 || c > 94) {
error("draw_text() only accepts plain ASCII. Char out of range: %i = %s", c, str[char_idx]);
error("draw_text() only accepts plain ASCII. Char out of range: %i = %d", c, str[char_idx]);
}

unsigned char *letter = &font[c * char_h];
Expand Down

0 comments on commit 59830e0

Please sign in to comment.