warning message when recompiling connect-server

Forum rules
NO LONGER BEING MAINTAINED!
Post Reply
joshr45
Posts: 96
Joined: Tue Mar 12, 2013 3:03 pm

warning message when recompiling connect-server

Post by joshr45 » Mon Mar 18, 2013 10:15 am

1>------ Build started: Project: DSConnect-server, Configuration: Debug Win32 ------
1> utils.cpp
1>c:\dsp\src\common\utils.cpp(133): warning C4244: 'return' : conversion from 'float' to 'uint8', possible loss of data
1> Generating Code...
1> Compiling...
1> login.cpp
1> lobby.cpp
1> timer.cpp
1> taskmgr.cpp
1> Generating Code...
1> DSConnect-server.vcxproj -> C:\dsp\win32\DSConnect-server\..\..\DSConnect-server.exe
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

but it did work so i don't know

same warning with search server

anglos
Posts: 29
Joined: Wed Jul 25, 2012 12:38 pm

Re: warning message when recompiling connect-server

Post by anglos » Mon Mar 18, 2013 7:08 pm

I think you'll find that this is quite common and nothing to worry about. A uint8 is an 8 bit type with no decimal places (0-255) while a float is a much larger type that also has decimal places so anything greater than 255, less than 0, or within decimal place range would be lost.

PrBlahBlahtson
Developer
Posts: 539
Joined: Sun Jul 22, 2012 12:17 am

Re: warning message when recompiling connect-server

Post by PrBlahBlahtson » Mon Mar 18, 2013 7:28 pm

This one's fairly harmless. If I remember right, it has to do with the character's pos_rot field, so you might log in facing a slightly different direction than expected.

It's the sort of thing we should eventually fix, but right now there are bigger fish (crashes) to pay attention to.

Post Reply