Procházet zdrojové kódy

duration_delta(): missing space in a one liner is too much.

antirez před 3 roky
rodič
revize
e921036d38
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      app.c

+ 1 - 1
app.c

@@ -64,7 +64,7 @@ void render_signal(ProtoViewApp *app, Canvas *const canvas, RawSamplesBuffer *bu
 /* Return the time difference between a and b, always >= 0 since
  * the absolute value is returned. */
 uint32_t duration_delta(uint32_t a, uint32_t b) {
-    return a > b ? a - b : b -a;
+    return a > b ? a - b : b - a;
 }
 
 /* This function starts scanning samples at offset idx looking for the