diff options
author | Nicky Dasmijn <nicky.dasmijn@gmail.com> | 2020-07-18 13:55:55 +0200 |
---|---|---|
committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2020-07-22 06:48:15 +0300 |
commit | acaa2723308a3cd5b90c0f337520478f67910804 (patch) | |
tree | 23fea9e1a9c3d1928afb001c02bdc0c8ebb9b4d9 /indra/llmessage/llhttpnode.h | |
parent | c16a364377fef29454c958087121de103fa9de41 (diff) |
LLExtStat had been a S32, this wasn't right, as some of the constants lead to integer overflow: const LLExtStat LL_EXSTAT_RES_RESULT = 2L<<30; const LLExtStat LL_EXSTAT_VFS_RESULT = 3L<<30; This shifts into the sign bit and clang gets (rightfully) upset about this.
LLExtStatus needs to be at least of type U32 to remedy this problem, but
while at it it makes sense to turn it into what it is: An enum. Turning
it into a class enum has the added benefit we get type safety for mostly
free.
Which incidentally turned up a problem right away:
A call to removeAndCallbackPendingDownloads had status and extstatus
reversed and thus was wrong.
Diffstat (limited to 'indra/llmessage/llhttpnode.h')
0 files changed, 0 insertions, 0 deletions