Explorar el Código

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

antirez hace 3 años
padre
commit
e921036d38
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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