diff --git a/src/scheduler.c b/src/scheduler.c
index 795ef9aa8f7e1917efc8d570722c7066c9fef2b0..0b8de3174807385d62f9c9e57f69eee1bc6b9d04 100644
--- a/src/scheduler.c
+++ b/src/scheduler.c
@@ -1309,12 +1309,12 @@ void scheduler_reweight(struct scheduler *s, int verbose) {
 #ifdef SWIFT_DEBUG_CHECKS
           if (t->flags < 0) error("Negative flag value!");
 #endif
-	  cost = 3.f * (wscale * count_i) * count_j * sid_scale[t->flags];
+          cost = 3.f * (wscale * count_i) * count_j * sid_scale[t->flags];
         } else {
 #ifdef SWIFT_DEBUG_CHECKS
           if (t->flags < 0) error("Negative flag value!");
 #endif
-	  cost = 2.f * (wscale * count_i) * count_j * sid_scale[t->flags];
+          cost = 2.f * (wscale * count_i) * count_j * sid_scale[t->flags];
         }
         break;