Mar 26, 2003 #1 ralphtan Technical User Oct 15, 2002 15 SG Anyone know how can I perfrom a type cast where float ptr; short ptr2; ... ptr2 = ptr; can I do this way? if not, what is the proper way to do it? Thanks
Anyone know how can I perfrom a type cast where float ptr; short ptr2; ... ptr2 = ptr; can I do this way? if not, what is the proper way to do it? Thanks
Mar 26, 2003 #2 marsd IS-IT--Management Apr 25, 2001 2,218 US Best creeate an error check but this: ptr2 =(short)ptr; should work in a perfect world with a good compiler. It works with gcc. Upvote 0 Downvote
Best creeate an error check but this: ptr2 =(short)ptr; should work in a perfect world with a good compiler. It works with gcc.