Computer Chess Club Archives


Search

Terms

Messages

Subject: 64-bit long long in GNU C

Author: Stuart Cracraft

Date: 11:58:51 07/24/04


I am printing it out with

  long long variable;
  ... do stuff to set variable ...
  printf("llx\n",variable);

but when I put this elsewhere in the code

  if (variable == 0x....)

the compilation balks with

  ga.c:2959: warning: integer constant is too large for "long" type

Should I be trying to print out the decimal of
variable and doing the if for that? If so,
what is the printf for doing it?

It is for tracking ofwhen a specific hashkey
is reached in the tree search before it causes
damage.

Thanks,

Stuart



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.