Bug #888

CSString::find and CSString::findNS broken

Added by ThibG over 8 years ago. Updated about 8 years ago.

Status:Closed Start date:05/12/2010
Priority:High Due date:
Assignee:kervala % Done:

100%

Category:NeL: General
Target version:Version 0.8.0

Description

As this (and similar) warning report, CSString::find is broken.
"code/ryzom/common/src/game_share/server_animation_module.cpp:1013: warning: comparison is always true due to limited range of data type"

CSString::find returns an unsigned where string::find returns a size_t. size_t is far larger than unsigned, and string::npos doesn't fit in an unsigned int.

History

#1 Updated by kervala over 8 years ago

  • Status changed from New to Assigned
  • Assignee set to kervala
  • Priority changed from Normal to High

Thanks for reporting this bug :)

Most of old code is casting size_t to uint... We already changed a lot of these parts, but there is still so much to do :)

#2 Updated by kervala over 8 years ago

  • Status changed from Assigned to Resolved
  • % Done changed from 0 to 100

Applied in changeset r103.

#3 Updated by kervala over 8 years ago

  • Target version set to Version 0.8.0

#4 Updated by vl about 8 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF