Skip to content

Commit

Permalink
Merge pull request lgautier#35 from randy3k/bool
Browse files Browse the repository at this point in the history
use bool type
  • Loading branch information
lgautier committed Oct 10, 2014
2 parents e4fd0d4 + a9a7400 commit 778d8cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions deps/librinterface.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* Copyright - 2012 - Laurent Gautier */
#include <stdlib.h>
#include <stdbool.h>
#include <strings.h>
#include <R.h>
#include <Rinternals.h>
Expand Down Expand Up @@ -768,7 +769,7 @@ SexpIntVector_ptr(SEXP sexp) {

/* Return NULL on failure */
SEXP
SexpBoolVector_new(int *v, int n) {
SexpBoolVector_new(bool *v, int n) {
RINTERF_NEWVECTOR(LOGICAL_POINTER, NEW_LOGICAL(n), int)
}

Expand All @@ -778,7 +779,7 @@ SexpBoolVector_new_nofill(int n) {
}

SEXP
SexpBoolVectorMatrix_new(int *v, int nx, int ny) {
SexpBoolVectorMatrix_new(bool *v, int nx, int ny) {
int n = nx * ny;
RINTERF_NEWVECTOR(LOGICAL_POINTER, allocMatrix(LGLSXP, nx, ny), int)
}
Expand Down

0 comments on commit 778d8cc

Please sign in to comment.