X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=ucw%2Fheap.h;h=74fedaef921cc235b2d08ad82989b7dcfcbc0550;hb=959566090f98dd31eaa67d3d5959b641e5fe902b;hp=74e8a12445c39a266b66a465c8c6d4f7b7d97454;hpb=4fb05895bf51ac32ca0a6173a0e3159e6f6d9771;p=libucw.git diff --git a/ucw/heap.h b/ucw/heap.h index 74e8a124..74fedaef 100644 --- a/ucw/heap.h +++ b/ucw/heap.h @@ -85,8 +85,8 @@ **/ #define HEAP_INIT(type,heap,num,less,swap) \ do { \ - uns _i = num; \ - uns _j, _l; \ + uint _i = num; \ + uint _j, _l; \ type x; \ while (_i >= 1) \ { \ @@ -104,7 +104,7 @@ **/ #define HEAP_DELETE_MIN(type,heap,num,less,swap) \ do { \ - uns _j, _l; \ + uint _j, _l; \ type x; \ swap(heap,1,num,x); \ num--; \ @@ -121,7 +121,7 @@ **/ #define HEAP_INSERT(type,heap,num,less,swap,elt) \ do { \ - uns _j, _u; \ + uint _j, _u; \ type x; \ heap[++num] = elt; \ _j = num; \ @@ -136,7 +136,7 @@ **/ #define HEAP_INCREASE(type,heap,num,less,swap,pos,elt) \ do { \ - uns _j, _l; \ + uint _j, _l; \ type x; \ heap[pos] = elt; \ _j = pos; \ @@ -151,7 +151,7 @@ **/ #define HEAP_DECREASE(type,heap,num,less,swap,pos,elt) \ do { \ - uns _j, _u; \ + uint _j, _u; \ type x; \ heap[pos] = elt; \ _j = pos; \ @@ -190,7 +190,7 @@ **/ #define HEAP_DELETE(type,heap,num,less,swap,pos) \ do { \ - uns _j, _l, _u; \ + uint _j, _l, _u; \ type x; \ _j = pos; \ swap(heap,_j,num,x); \