[PR #793] [MERGED] Fix: Integer literal is too large to be represented as signed integer… #1311

Open
opened 2026-01-29 15:19:10 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/TheAlgorithms/C/pull/793
Author: @ghost
Created: 2/3/2021
Status: Merged
Merged: 2/18/2021
Merged by: @Panquesito7

Base: masterHead: master


📝 Commits (1)

  • de911c9 Fix: Integer literal is too large to be represented as signed integer typed

📊 Changes

1 file changed (+3 additions, -3 deletions)

View changed files

📝 hash/hash_sdbm.c (+3 -3)

📄 Description

Fixed the warning integer literal is too large to be represented as singed integer. The file now compiles successfully.

Description of Change

In the file hash/hash_sdbm.c the integer literals ( in the line: 36, 38, 39 ) were too large to be signed and were error prone. Simply making them unsigned fixes the issue.

Checklist

  • Added description of change
  • PR title follows semantic commit guidelines
  • Search previous suggestions before making a new one, as yours may be a duplicate.
  • I acknowledge that all my contributions will be made under the project's license.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/TheAlgorithms/C/pull/793 **Author:** [@ghost](https://github.com/ghost) **Created:** 2/3/2021 **Status:** ✅ Merged **Merged:** 2/18/2021 **Merged by:** [@Panquesito7](https://github.com/Panquesito7) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (1) - [`de911c9`](https://github.com/TheAlgorithms/C/commit/de911c9e8d43f97e026949f4796be742e733c401) Fix: Integer literal is too large to be represented as signed integer typed ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `hash/hash_sdbm.c` (+3 -3) </details> ### 📄 Description Fixed the warning integer literal is too large to be represented as singed integer. The file now compiles successfully. #### Description of Change In the file hash/hash_sdbm.c the integer literals ( in the line: 36, 38, 39 ) were too large to be signed and were error prone. Simply making them unsigned fixes the issue. #### Checklist <!-- Remove items that do not apply. For completed items, change [ ] to [x]. --> - [x] Added description of change - [x] PR title follows semantic [commit guidelines](https://github.com/TheAlgorithms/C/blob/master/CONTRIBUTING.md#Commit-Guidelines) - [x] Search previous suggestions before making a new one, as yours may be a duplicate. - [x] I acknowledge that all my contributions will be made under the project's license. <a href="https://gitpod.io/#https://github.com/TheAlgorithms/C/pull/793"><img src="https://gitpod.io/api/apps/github/pbs/github.com/hexqwit/C.git/de911c9e8d43f97e026949f4796be742e733c401.svg" /></a> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 15:19:10 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/C#1311