Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hash: change 'slots' to size_t from int #13502

Closed
wants to merge 1 commit into from

Conversation

bagder
Copy link
Member

@bagder bagder commented Apr 30, 2024

  • an unsigned type makes more sense
  • size_t seems suitable
  • on 64 bit args, the struct alignment makes the new Curl_hash remain the same size

Ref: #13489

- an unsigned type makes more sense
- size_t seems suitable
- on 64 bit args, the struct alignment makes the new Curl_hash remain
  the same size
@bagder bagder added the tidy-up label Apr 30, 2024
@bagder bagder closed this in cc907e8 Apr 30, 2024
@bagder bagder deleted the bagder/hash-size_t-slots branch April 30, 2024 08:23
vszakats added a commit to vszakats/curl that referenced this pull request Apr 30, 2024
also fixup (32-bit i686-linux-gnu-gcc-11)
```
hash.c:282:7: error: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion]
  282 |     h ^= (size_t)*key_str++;
      |       ^~
```
Ref: https://github.com/curl/curl/actions/runs/8862007379/job/24334479063?pr=13489#step:6:235

Also address FIXMEs

Rebased on fixes cc907e8 curl#13502
vszakats added a commit to vszakats/curl that referenced this pull request Apr 30, 2024
also fixup (32-bit i686-linux-gnu-gcc-11)
```
hash.c:282:7: error: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion]
  282 |     h ^= (size_t)*key_str++;
      |       ^~
```
Ref: https://github.com/curl/curl/actions/runs/8862007379/job/24334479063?pr=13489#step:6:235

Also address FIXMEs

Rebased on fixes cc907e8 curl#13502
vszakats added a commit to vszakats/curl that referenced this pull request Apr 30, 2024
also fixup (32-bit i686-linux-gnu-gcc-11)
```
hash.c:282:7: error: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion]
  282 |     h ^= (size_t)*key_str++;
      |       ^~
```
Ref: https://github.com/curl/curl/actions/runs/8862007379/job/24334479063?pr=13489#step:6:235

Also address FIXMEs

Rebased on fixes cc907e8 curl#13502
vszakats added a commit to vszakats/curl that referenced this pull request Apr 30, 2024
also fixup (32-bit i686-linux-gnu-gcc-11)
```
hash.c:282:7: error: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion]
  282 |     h ^= (size_t)*key_str++;
      |       ^~
```
Ref: https://github.com/curl/curl/actions/runs/8862007379/job/24334479063?pr=13489#step:6:235

Also address FIXMEs

Rebased on fixes cc907e8 curl#13502
vszakats added a commit to vszakats/curl that referenced this pull request May 5, 2024
also fixup (32-bit i686-linux-gnu-gcc-11)
```
hash.c:282:7: error: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion]
  282 |     h ^= (size_t)*key_str++;
      |       ^~
```
Ref: https://github.com/curl/curl/actions/runs/8862007379/job/24334479063?pr=13489#step:6:235

Also address FIXMEs

Rebased on fixes cc907e8 curl#13502
vszakats added a commit to vszakats/curl that referenced this pull request May 7, 2024
also fixup (32-bit i686-linux-gnu-gcc-11)
```
hash.c:282:7: error: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion]
  282 |     h ^= (size_t)*key_str++;
      |       ^~
```
Ref: https://github.com/curl/curl/actions/runs/8862007379/job/24334479063?pr=13489#step:6:235

Also address FIXMEs

Rebased on fixes cc907e8 curl#13502
vszakats added a commit to vszakats/curl that referenced this pull request May 11, 2024
also fixup (32-bit i686-linux-gnu-gcc-11)
```
hash.c:282:7: error: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion]
  282 |     h ^= (size_t)*key_str++;
      |       ^~
```
Ref: https://github.com/curl/curl/actions/runs/8862007379/job/24334479063?pr=13489#step:6:235

Also address FIXMEs

Rebased on fixes cc907e8 curl#13502
vszakats added a commit that referenced this pull request May 12, 2024
Follow-up to cc907e8 #13502
Cherry-picked from #13489
Closes #13601
vszakats added a commit to vszakats/curl that referenced this pull request May 12, 2024
also fixup (32-bit i686-linux-gnu-gcc-11)
```
hash.c:282:7: error: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion]
  282 |     h ^= (size_t)*key_str++;
      |       ^~
```
Ref: https://github.com/curl/curl/actions/runs/8862007379/job/24334479063?pr=13489#step:6:235

Also address FIXMEs

Rebased on fixes cc907e8 curl#13502
vszakats added a commit to vszakats/curl that referenced this pull request May 13, 2024
also fixup (32-bit i686-linux-gnu-gcc-11)
```
hash.c:282:7: error: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion]
  282 |     h ^= (size_t)*key_str++;
      |       ^~
```
Ref: https://github.com/curl/curl/actions/runs/8862007379/job/24334479063?pr=13489#step:6:235

Also address FIXMEs

Rebased on fixes cc907e8 curl#13502
vszakats added a commit to vszakats/curl that referenced this pull request May 13, 2024
also fixup (32-bit i686-linux-gnu-gcc-11)
```
hash.c:282:7: error: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion]
  282 |     h ^= (size_t)*key_str++;
      |       ^~
```
Ref: https://github.com/curl/curl/actions/runs/8862007379/job/24334479063?pr=13489#step:6:235

Also address FIXMEs

Rebased on fixes cc907e8 curl#13502
vszakats added a commit to vszakats/curl that referenced this pull request May 14, 2024
also fixup (32-bit i686-linux-gnu-gcc-11)
```
hash.c:282:7: error: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion]
  282 |     h ^= (size_t)*key_str++;
      |       ^~
```
Ref: https://github.com/curl/curl/actions/runs/8862007379/job/24334479063?pr=13489#step:6:235

Also address FIXMEs

Rebased on fixes cc907e8 curl#13502
vszakats added a commit to vszakats/curl that referenced this pull request Jun 2, 2024
also fixup (32-bit i686-linux-gnu-gcc-11)
```
hash.c:282:7: error: conversion to ‘size_t’ {aka ‘unsigned int’} from ‘unsigned int’ may change the sign of the result [-Werror=sign-conversion]
  282 |     h ^= (size_t)*key_str++;
      |       ^~
```
Ref: https://github.com/curl/curl/actions/runs/8862007379/job/24334479063?pr=13489#step:6:235

Also address FIXMEs

Rebased on fixes cc907e8 curl#13502
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

1 participant