Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Replace #define with constexpr declarations.
[simgrid.git] / teshsuite / msg / cloud-capping / cloud-capping.c
index c3b0648..3a4f493 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2007-2018. The SimGrid Team. All rights reserved.          */
+/* Copyright (c) 2007-2019. The SimGrid Team. All rights reserved.          */
 
 /* This program is free software; you can redistribute it and/or modify it
  * under the terms of the license (GNU LGPL) which comes with this package. */
@@ -60,10 +60,9 @@ static int worker_busy_loop_main(int argc, char* argv[])
   return 0;
 }
 
-#define DOUBLE_MAX 1e11
-
 static void test_dynamic_change(void)
 {
+  const double DOUBLE_MAX = 1e11;
   msg_host_t pm0 = MSG_host_by_name("Fafard");
 
   msg_vm_t vm0 = MSG_vm_create_core(pm0, "VM0");