[BACK]Return to patch-testtimeseries.cpp CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / databases / gigabase / patches

File: [cvs.NetBSD.org] / pkgsrc / databases / gigabase / patches / patch-testtimeseries.cpp (download)

Revision 1.1, Fri Mar 20 20:45:46 2020 UTC (8 months, 2 weeks ago) by joerg
Branch: MAIN
CVS Tags: pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, HEAD

Fix portability by explicit casts to resolve ambiguity. Don't
reimplement standard C functions.

$NetBSD: patch-testtimeseries.cpp,v 1.1 2020/03/20 20:45:46 joerg Exp $

--- testtimeseries.cpp.orig	2020-03-20 19:03:40.088638131 +0000
+++ testtimeseries.cpp
@@ -47,8 +47,6 @@ REGISTER_TEMPLATE(DailyBlock);
 REGISTER(Stock);
 
 inline int random(unsigned mod) { return rand() % mod; }
-inline float fmax(float x, float y) { return x > y ? x : y; }
-inline float fmin(float x, float y) { return x < y ? x : y; }
 
 int main(int argc, char* argv[])
 {