adding 'csize' (aka 'unsigned long') to a string does not append to the string

Bug #1186114 reported by Paul J. Lucas
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zorba
Fix Committed
Medium
Markos Zaharioudakis

Bug Description

orba/src/store/naive/simple_store.cpp:95:52: warning: adding 'csize' (aka 'unsigned long') to a string does not append to the string [-Wstring-plus-int]
      ZORBA_FATAL(0, theNodeToReferencesMap.size() +

The use of '+' here is wrong: '+' doesn't create a string from an unsigned long and a char*.

Also:

zorba/src/store/naive/simple_store.cpp:108:52: warning: adding 'size_type' (aka 'unsigned long') to a string does not append to the string [-Wstring-plus-int]
      ZORBA_FATAL(0, theReferencesToNodeMap.size() +

Changed in zorba:
milestone: none → 3.0
assignee: nobody → Markos Zaharioudakis (markos-za)
description: updated
Changed in zorba:
status: New → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.