Project

General

Profile

Bug #12974

libc: left shift of negative value

Added by Toomas Soome 18 days ago. Updated 18 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
lib - userland libraries
Start date:
Due date:
% Done:

90%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

Build errors on SPARC:

    ../port/gen/_ftoll.c: In function '__dtoll':
    ../port/gen/_ftoll.c:107:34: error: left shift of negative value [-Werror=shift-negative-value]
            (m1 >> (62 - exp)) & ~(-1 << (exp - 30));
                                      ^~
    ../port/gen/_ftoll.c: In function '_Q_qtoll':
    ../port/gen/_ftoll.c:278:34: error: left shift of negative value [-Werror=shift-negative-value]
            (m1 >> (62 - exp)) & ~(-1 << (exp - 30));
                                      ^~
    cc1: all warnings being treated as errors

replace -1 by UINT_MAX.

History

#1

Updated by Joshua M. Clulow 18 days ago

  • Gerrit CR set to 805

Also available in: Atom PDF