[Yuima-commits] r807 - pkg/yuima/src

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Aug 2 23:09:54 CEST 2022


Author: phoenix844
Date: 2022-08-02 23:09:53 +0200 (Tue, 02 Aug 2022)
New Revision: 807

Modified:
   pkg/yuima/src/ae.cpp
Log:
Fixed warning in ae.cpp

Modified: pkg/yuima/src/ae.cpp
===================================================================
--- pkg/yuima/src/ae.cpp	2022-08-02 17:29:52 UTC (rev 806)
+++ pkg/yuima/src/ae.cpp	2022-08-02 21:09:53 UTC (rev 807)
@@ -5,7 +5,7 @@
 
 // [[Rcpp::export]]
 bool is_zero (std::string const &x){
-  return((x=="0") | (x=="(0)") | (x=="{0}") | (x=="(0+0i)") | (x==""));
+  return((x=="0") || (x=="(0)") || (x=="{0}") || (x=="(0+0i)") || (x==""));
 }
 
 



More information about the Yuima-commits mailing list