[Xts-commits] r776 - pkg/xts/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Mon Jun 10 13:32:18 CEST 2013


Author: edd
Date: 2013-06-10 13:32:18 +0200 (Mon, 10 Jun 2013)
New Revision: 776

Modified:
   pkg/xts/src/endpoints.c
Log:
use && instead of &, detected by clang compiler


Modified: pkg/xts/src/endpoints.c
===================================================================
--- pkg/xts/src/endpoints.c	2013-06-09 16:43:16 UTC (rev 775)
+++ pkg/xts/src/endpoints.c	2013-06-10 11:32:18 UTC (rev 776)
@@ -59,7 +59,7 @@
       error("unsupported 'x' type");
       break;
   }
-  if(ep[j-1] != nr & asLogical(_addlast)) { /* protect against endpoint at NR */
+  if(ep[j-1] != nr && asLogical(_addlast)) { /* protect against endpoint at NR */
 /* Rprintf("ep[%i-1] != %i\n", j, nr);  */
     ep[j] = nr;
     j++;



More information about the Xts-commits mailing list