Просмотр исходного кода

memorypool: fixed wrong pointer comparison introduced by 3444792f14d96a58648add92b8f3b70e4babf772

Evgeny Grin (Karlson2k) 2 лет назад
Родитель
Сommit
f37c98c5cf
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/microhttpd/memorypool.c

+ 1 - 1
src/microhttpd/memorypool.c

@@ -125,7 +125,7 @@
  * Boolean 'true' if the first pointer is less or equal the second pointer
  */
 #define mp_ptr_le_(p1,p2) \
-  (((uintptr_t)((const void*)(p1))) <= ((uintptr_t)((const void*)(p1))))
+  (((uintptr_t)((const void*)(p1))) <= ((uintptr_t)((const void*)(p2))))
 /**
  * The difference in bytes between positions of the first and
  * the second pointers