• 0

[c] Line Giving Warnings


Question

fseek (fp, -1L * sizeof (STUDENT), SEEK_CUR);

it says :

warning C4308: negative integral constant converted to unsigned type

warning C4307: '*' : integral constant overflow

can someone spot the reason for the warnings

thanks

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
fseek (fp, -1L * sizeof (STUDENT), SEEK_CUR);

it says :

warning C4308: negative integral constant converted to unsigned type

warning C4307: '*' : integral constant overflow

can someone spot the reason for the warnings

thanks

C4308 --- http://msdn.microsoft.com/library/default..../HTML/c4308.asp

C4307 --- http://msdn.microsoft.com/library/en-us/vc....asp?frame=true

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.