Bitcoin Forum
April 30, 2024, 08:37:48 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: What does 'int' mint in Bitcoin  (Read 104 times)
libert19 (OP)
Hero Member
*****
Offline Offline

Activity: 2478
Merit: 942



View Profile WWW
February 22, 2023, 05:12:15 AM
 #1

Pardon my ignorance. I just read this sentence and I don't get it.

"There should not be any signed int. If you've found a signed int somewhere, please tell me (within the next 25 years please) and I'll change it to unsigned int." -- Satoshi


███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits.
..........UNLEASH..........
THE ULTIMATE
GAMING EXPERIENCE
DUELBITS
FANTASY
SPORTS
████▄▄█████▄▄
░▄████
███████████▄
▐███
███████████████▄
███
████████████████
███
████████████████▌
███
██████████████████
████████████████▀▀▀
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
.
▬▬
VS
▬▬
████▄▄▄█████▄▄▄
░▄████████████████▄
▐██████████████████▄
████████████████████
████████████████████▌
█████████████████████
███████████████████
███████████████▌
███████████████▌
████████████████
████████████████
████████████████
████▀▀███████▀▀
/// PLAY FOR  FREE  ///
WIN FOR REAL
..PLAY NOW..
1714509468
Hero Member
*
Offline Offline

Posts: 1714509468

View Profile Personal Message (Offline)

Ignore
1714509468
Reply with quote  #2

1714509468
Report to moderator
1714509468
Hero Member
*
Offline Offline

Posts: 1714509468

View Profile Personal Message (Offline)

Ignore
1714509468
Reply with quote  #2

1714509468
Report to moderator
"This isn't the kind of software where we can leave so many unresolved bugs that we need a tracker for them." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714509468
Hero Member
*
Offline Offline

Posts: 1714509468

View Profile Personal Message (Offline)

Ignore
1714509468
Reply with quote  #2

1714509468
Report to moderator
1714509468
Hero Member
*
Offline Offline

Posts: 1714509468

View Profile Personal Message (Offline)

Ignore
1714509468
Reply with quote  #2

1714509468
Report to moderator
pooya87
Legendary
*
Offline Offline

Activity: 3430
Merit: 10519



View Profile
February 22, 2023, 05:23:36 AM
 #2

"int" is short for integer which is a whole number (without fraction) that can be positive, negative, or zero. https://en.wikipedia.org/wiki/Integer

.
.BLACKJACK ♠ FUN.
█████████
██████████████
████████████
█████████████████
████████████████▄▄
░█████████████▀░▀▀
██████████████████
░██████████████
████████████████
░██████████████
████████████
███████████████░██
██████████
CRYPTO CASINO &
SPORTS BETTING
▄▄███████▄▄
▄███████████████▄
███████████████████
█████████████████████
███████████████████████
█████████████████████████
█████████████████████████
█████████████████████████
███████████████████████
█████████████████████
███████████████████
▀███████████████▀
█████████
.
NeuroticFish
Legendary
*
Offline Offline

Activity: 3654
Merit: 6371


Looking for campaign manager? Contact icopress!


View Profile
February 22, 2023, 11:20:17 AM
 #3

It's about a data type in the code or data.

The thing is that a signed int (32 bit signed integer) takes values between -2,147,483,648 and 2,147,483,647,
while unsigned int goes between 0 and 4,294,967,295

Clearly Satoshi meant that in case an error is found in his code, that has to be fixed before a big number is reached (bigger than 2,147,483,647), because in case of signed int that will mean an overflow to negative numbers.

.
.HUGE.
▄██████████▄▄
▄█████████████████▄
▄█████████████████████▄
▄███████████████████████▄
▄█████████████████████████▄
███████▌██▌▐██▐██▐████▄███
████▐██▐████▌██▌██▌██▌██
█████▀███▀███▀▐██▐██▐█████

▀█████████████████████████▀

▀███████████████████████▀

▀█████████████████████▀

▀█████████████████▀

▀██████████▀▀
█▀▀▀▀











█▄▄▄▄
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
.
CASINSPORTSBOOK
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀▀█











▄▄▄▄█
DdmrDdmr
Legendary
*
Offline Offline

Activity: 2296
Merit: 10748


There are lies, damned lies and statistics. MTwain


View Profile WWW
February 22, 2023, 11:53:47 AM
Merited by NeuroticFish (2)
 #4

The origin of the comment is related to assuring that the code’s timestamp fields were not potentially subject to the Y2038 overflow problem (on 32 bit signed integers), as depicted in this thread. 32 bit unsigned integers manage to postpone the problem until next century ...

I figure that the core code has been verified on multiple occasions to be Y2038 free, though in general terms, we’d likely hear quite a bit about it as we close into the said year.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!