Skip to content
Myr

Merge branch 'working'

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Sean Barrett · committed by Sean Barrett · parents 781609b, e97a95c · Browse files · 1 file+3 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+3 added−0 removed

  • other:+3 added−0 removed

1 file+3 added−0 removed

modified:stb_ds.h+3 added
377 unmodified lines
378 Vinh Truong379 Andreas Molzer380 github:hashitaku381 github:srdjanstipic382 Macoy Madson383*/384385#ifdef STBDS_UNIT_TESTS386#define _CRT_SECURE_NO_WARNINGS
994 unmodified lines
1381 for (i=pos & STBDS_BUCKET_MASK; i < STBDS_BUCKET_LENGTH; ++i) {1382 if (bucket->hash[i] == hash) {1383 if (stbds_is_key_equal(raw_a, elemsize, key, keysize, keyoffset, mode, bucket->index[i])) {1384 stbds_temp(a) = bucket->index[i];1385 if (mode >= STBDS_HM_STRING)1386 stbds_temp_key(a) = * (char **) ((char *) raw_a + elemsize*bucket->index[i] + keyoffset);1387 return STBDS_ARR_TO_HASH(a,elemsize);1388 }1389 } else if (bucket->hash[i] == 0) {1390 pos = (pos & ~STBDS_BUCKET_MASK) + i;
496 unmodified lines