U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » [SOLVED] Why long long int seems to be 32 bit longer?
Re: Why long long int seems to be 32 bit longer? [message #52148 is a reply to message #52145] Mon, 29 July 2019 10:17 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3460
Registered: August 2008
Senior Veteran
Hi Luigi

Yes. I would declare n like this:
long long int setKthBit(unsigned long long n, int k) 
int getKthBit(unsigned long long n, int k)

In addition, maybe it should be used
1ULL << k

instead of
1 << k


Best regards
IƱaki

[Updated on: Mon, 29 July 2019 10:18]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem with LanguageInfo
Next Topic: Implementation of Vector::Add()
Goto Forum:
  


Current Time: Wed Jun 10 21:15:53 GMT+2 2026

Total time taken to generate the page: 0.00498 seconds